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