Java Learning 5--Identifiers and keywords

Source: Internet
Author: User
Tags java keywords

Identifier:

1. The string sequence used by Java to name elements such as variables, methods, and classes is called an identifier. All the places where you can name them are called identifiers, and you must obey the rules of identifiers.

2. Naming rules for Java identifiers:

Identifiers consist of letters, underscores "_", dollar characters $, or numbers.

Identifiers should begin with a letter, underscore, and dollar symbol.

Java identifiers are case-sensitive and of unlimited length.

Java identifier selection should be noted "see the name" and cannot be the same as the Java keyword.

Key words:

1. Some special meanings are given in Java, and the string used for specialized purposes becomes the keyword (keyword). 2. All Java keywords are lowercase English 3, goto and const although never used, but also be reserved as Java keyword

Java Learning 5--Identifiers and keywords

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.