Learning Java keywords
All keywords are in lowercase.
It is very important to correctly identify the keywords (keyword) and reserved words (reserved word) in Java. Java keywords have special significance for Java compilers. They are used to represent a data type orProgram. Reserved Words are reserved keywords for Java. Although they are not currently used as keywords, they may be used as keywords in later versions.
Java uses a total of 48 reserved keywords. They can be divided into the following types:
(1) Access Control
Private, protected protection, public sharing.
(2) classes, methods, and variable Modifiers
Abstract abstract, class, extended extends,
Final Outcome, implements tool, interface,
Native local, new, static,
Strictfp, synchronized synchronization, transient short,
Volatile is easy to lose.
(3) program control statements
Break, continue, return, do, while, if, else,
For, instanceof, switch, Case, default,
(4) handle errors
Catch catch, finally, throw,
Try throws
(5) package-related
Import input, package.
(6) Basic Types
Boolean, byte, Char, double, double,
Float floating point, Int, long, and short
(7) variable reference
Super Special, this, void has no value
In addition to the 48 keywords, there are three reserved syntax words:
Null null, true, False false.