Summary: As a programming language, Java, like other programming languages, has the basic elements of character sets, identifiers and keywords, variables, constants, statements, and other programming languages. As a programming language that was released only 1995 years ago, Java draws on many of the language features of C and C + +.
2.1 Keywords:
Each programming language has some reserved words that define the language, which has a special meaning for the compiler and cannot be used as an identifier-this is the keyword of the programming language. Java's keywords have special meanings for Java compilers, they are used to represent a data type, or to represent the structure of a program, and the keyword cannot be used as a variable name, method name, class name, package name, or parameter.
Access control
Private protected public
Class, method, and variable modifiers
Abstract class extends final implements interface native new
Static strictfp synchronized transient volatile
Program
Break continue return does while if-else for instanceof switch
Case default
Exception handling
Try cathc throw throws
Package related
Import Package
Basic type
Boolean byte char double float int long short null true false
Variable reference
Super this void
Reserved words
Goto CONST
The key word for Java's underlying syntax