Java Keywords and identifiers

Source: Internet
Author: User
Tags goto java keywords

Tag: His span port makes up end ext ATI Break out

First, the key word

given the special meaning of the Java language, use it as a special-purpose string (word) Note: All letters in the keyword are lowercase

Abstract Boolean Break Byte Case
Catch Char Class Const Continue
Default Do Double Else Extends
Assert Final Finally Float For
Goto If Implements Import instanceof
Int Interface Long Native New
Strictfp Package Private Protectde Public
Return Short Static Super Switch
Synchronized This Throw Shrows Transient
Try void Volatile While

java reserved word: The existing Java version is not yet used, but later versions may be used as keywords. Avoid using these reserved words when you name the tags yourself

Byvalue, cast, future, generic, inner, operator, outer, rest, VAR, goto, const

Second, identifiers

The sequence of characters used by Java to name features such as variables, methods, and classes is called identifiers.

To define a legal identifier rule:

    • Made up of 26 letters in uppercase, 0-9, _ or $
    • Numbers may not start.
    • You cannot use keywords and reserved words, but you can include keywords and reserved words.
    • Java is strictly case-sensitive and has unlimited length.
    • Identifiers cannot contain spaces.

Java Keywords and identifiers

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.