Tables for the core Java language
The following tables are somewhat old and describe the state of the JDK 1.2.
Therefore the keywords "assert" and "strictfp" aren't treated completely.
New versions of these tables are planned.
Please note that this tables aren't from Sun Microystems Inc.
and therefore aren't part of any official documentation.
The tables contain apart from the core data
an indication of the frequency of use of each grammatical Java element.
The frequency is indicated in number of occurrences per 100 lines of code.
The data of the frequency should help the Java beginners,
who can direct their attention toward the important elements,
while ignoring the rare elements.
Every table is available as a low resolution GIF image
and a high resolution PDF file. For the pdf files
Acrobat reader
is needed.
Clicking on the links opens a new window without navigation frames.
Keywords
Java defines 51 keywords presented in the following table.
Operators
Java defines 40 operators originating from C, that are listed in the following table.
Normally operators yield only values for further use in expressions.
The assignment, the increment and decrement operators however
have the additional effect to change the values of variables.
The result column in the table contains a special remark in these cases.
The priority in column 1 decides on the order of execution of different operators.
For example the expression 3<2*5 has the same value as the expression 3<(2*5)
because the multiplication operator has a higher priority.
The associativity in column 4 decides on the order of execution of a sequence of identical operators.
Therefore 12/6/2 is equivalent to (12/6)/2
because of the left associativity of the division operator.
Token analysis
The lexical analysis of the Java compiler decomposes source code into a sequence of tokens.
The keywords "null", "true" and "false"
can also be regarded as literals.
Likewise the keyword "instanceof" designates an operator.
|