Vocabulary in Java

Source: Internet
Author: User
Tags goto

Vocabulary in Java:

  whitespace characters : spaces, tabs, newline characters. Their presence makes the code look beautiful.

  identifiers : consists of uppercase and lowercase letters, numbers, underscores, dollar signs. And the number cannot be used for the first character of the identifier.

   literal: The value of a variable is typically created using a literal that represents a constant. For example: 521 (identifies an integer), 52.1 (identifies a floating-point number), ' 521 ' (identifies a character constant), "521" (identifies a string).

  Note ://(line note),/**---*/(document NOTE),/*---*/(paragraph note).

  delimiter :

(): parentheses, which are used to include a parameter list, an arithmetic control priority, a coercion type conversion, and a condition that evaluates an expression.

{}: Curly braces, which contain values for automatic initialization, define code blocks, classes, methods, and local scopes.

[]: square brackets, used to declare an array, undo a reference to an array of objects.

;: semicolon, used to end a statement.

,: comma, for parallel declaration, parameter splitting, for loop.

.: Period, which is used to connect object properties, in short, contains the containing relationship.

  keywords : 50 keywords are defined in Java, and the const and GOTO keywords are preserved (not used).

Abstract continue for new switch

Assert default Goto package synchronized

Boolean do if private this

Break double implements protected throw

Byte else import public throws

Case Enum Instanceor return transient

catch extends int short try

Char final interface static void

Class finally Long strictfp void

const float Native Super while

In addition to the above, there are true,false,null. So these will not be used for variables, class names.

Vocabulary in Java

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.