Java Identifiers and keywords

Source: Internet
Author: User
Tags keyword list java keywords

First, identifiersconcept: is used to give the program in the variables, classes, methods named symbols;identifier rules: Identifiers can consist of letters, numbers, underscores _, and dollar sign $, and numbers do not beginidentifiers cannot make Java keywords and reserved words, but can contain keywords and reserved wordsidentifiers cannot contain spacesidentifiers can only contain dollar sign $ and cannot contain @, #等其他特殊字符delimiter: semicolon; curly brace {} square brackets [] brackets () space dots.; second, the Java keywordJava contains 50 keys, all the keywords are lowercase keyword list: Abstract assert of abstraction boolean break byte case catch char const (reserved word) continue default do Double Else enum extends final finally float for if goto (reserved word) implements import int Interface Long native New Package Private protectedPublic returnShort Static STRICTFP Super Switch SynchronizedThis throw throws transient try void volatile while   three special Direct quantities (iteral); True false null is not a keyword      final modifier variable, equivalent to constantthe parameters in the final decoration method are called final parameters. final decorated class, the class cannot be inheritedFinal decoration method, the method cannot be overridden.

Java 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.