1-keyword identifier comment

Source: Internet
Author: User

keywords: Words that are given a specific meaning by the Java language,the letters that make up the keywords are all lowercase,Goto and const exist as reserved words and are not currently used

Identifier

L Identifier: a sequence of characters to use when naming classes, interfaces, methods, variables, etc.

L Composition Rules

• English uppercase and lowercase letters

• Numeric characters

$ and _

L Precautions

• Cannot start with a number

• Cannot be a keyword in Java

• Case sensitivity

Identifiers (common naming rules)

Comment Classification format in Java

• Single-line comment

• Format://Note text

• Multi-line annotations

• Format:/* Comment Text */

• Documentation Comments

• Format:/** Note text */

1-keyword identifier comment

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.