|
Instant eXpert Guides |
Java (computer language) reserved words can be classified in several groupings
relating to the origin or purpose of the word. Java grammar and syntax provide
the language structure and reveal the word classes (or word groups), such as
primitive data types, statements, modifiers, etc.
boolean, byte, char, double, float, int, long, short
The following list of words are Java key-words ( reserved words ) that are Java statements:
break, case, catch, continue, default, do, else, finally, for, if, return, synchronized, switch, throw, try, while
Some reserved words begin a statement, while other words provide a way to complete the statement. Examples of these statement structures: if/else, switch/case, or try/catch/finally. Other Java statements are a single Java word such as break, which can be used in combination with do, do/while, for, switch/case, and while.
Modifiers provide additional information to describe or classify something. The following list of words are Java key-words ( reserved words ) that are Java modifiers:
abstract, final, native, private, protected, public, strictfp, static, synchronized, transient, volatile
Also known as member modifiers.
private, protected, public
abstract, final, public, strictfp, static
final, static, transient, volatile
static
abstract, public
Also known as access modifiers.
private, protected, public
abstract, final, native, strictfp, static, synchronized, void
final
class, extends, new, super, this
implements
import, package
These keywords are the Java pre-defined constants
true, false, null
These Java keywords are actually considered 'operators'.
new, instanceof
assert - added in Java 1.4
enum - added in Java 5.0
These Java keywords were reserved (and protected) by the creators of Java, but never implemented.
const, goto