Page 786 - Introduction to Programming with Java: A Problem Solving Approach
P. 786
752 Appendix 3 Java Reserved Words
default—otherwise. This is usually the last case in a switch statement. It represents all other cases (cases not identified in previous case blocks).
do—execute. This is the first keyword in a do-while loop. The continuation condition appears in parentheses after the while keyword at the end of the loop.
double—twice as much. This primitive floating-point data type requires twice as much storage, 8 bytes, as the older floating-point data type, float, which requires only 4 bytes.
else—otherwise. This keyword may be used in a compound if statement as the header (or part of the header) of a block of code that executes if the previous if condition is not satisfied.
enum*—enumeration. This special type of class defines a set of named constants, which are implicitly static and final.
extends—derives from. This class heading extension specifies that the class being defined will inherit all members of the class named after the extends keyword.
false—no. This is one of the two possible boolean values.
final—last form or value. This modifier keeps classes and methods from being redefined, and it says a
named value is a constant.
finally—last operation. ThiAs mpayabegusoed aftePr tDryFand cEatnchbalocnks cto sepercify operations that need to
be performed after a catch processes an exception.
float—floating point. This is an older floating-point data type. It requires 4 bytes.
for—the most versatile type of loop. This keyword introduces a loop whose header specifies and controls the range of iteration.
goto*—jump to. This deprecated command specifies an unconditional branch. Don’t use it. if—conditional execution. This keyword initiates execution of a block of code if an associated condition is
satisfied.
implements—defines. This class heading extension specifies that the class being defined will define all
methods declared by the interface named after the implements keyword.
import—bring in. This tells the compiler to make subsequently identified classes available for use in the current program.
Figure A3.1b Reserved words—part B