Keyword definition and characteristics:
Definition: JAVA prophecy is given a special meaning, with special purposes string (word)
Features: All the keywords are lowercase letters
Official address: https: //docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html
Used to define the data types of keywords:
class | interface | enum | byte | short |
int | long | float | double | char |
boolean | void |
Keyword defines for process control:
if | else | switch | case | default |
while | do | for | break | continue |
return |
Define access rights for keyword modifiers:
private | protected | public |
Keyword for defining classes, functions, variables modifier:
abstract | final | static | synchronized |
Keyword for defining the relationship between class and class:
extends | implements |
Used to define and create an instance of a reference examples, examples of key judgment:
new | this | super | instanceof |
Keywords for exception handling:
try | catch | finally | throw | throws |
Keywords for package:
package | import |
Other modifier keywords:
native | strictfp | transient | volatile | assert |
Used to define the data type literal values:
true | false | null |
Reserved words:
JAVA reserved words: JAVA version of the existing unused, but later versions may use as keywords. When naming your own identifier to avoid using these reserved words
goto、const