Page 787 - Introduction to Programming with Java: A Problem Solving Approach
P. 787

                Appendix 3 Java Reserved Words 753
 inner—internal. When followed by the keyword class, this specifies that the class defined in the subsequent code block be nested inside the current class.
instanceof—conforms to. This boolean operator tests whether the object on the left is an instance of the class on the right or an ancestor of that class.
int—integer. This is the standard integer data type. It requires 4 bytes.
interface—what an outsider sees. A Java interface declares a set of methods but does not define them.
A class that implements an interface must define all the methods declared in that interface. An interface can also define static constants. Another kind of interface just conveys a particular message to the compiler.
long—long integer. This is the longest integer data type. It requires 8 bytes.
native—indigenous. Native code is code that has been compiled into the (low-level) language of the local
processor. Sometimes called machine code.
new—fresh instance of. This Java command calls a class constructor to create a new object at runtime.
null—nothing. This is the value in a reference variable that does not refer to anything.
package—an associated group. In Java, this is a container for a group of related classes that a programmer can import. Apago PDF Enhancer
private—locally controlled. This modifier of methods and variables makes them accessible only from within the class in which they are declared.
protected—kept from public exposure. This is a modifier for methods and variables that makes them accessible only from within the class in which they are declared, descendants of that class, or other classes in the same package.
public—accessible to everyone. This modifier of classes, methods, and variables makes them accessible from anywhere. A Java interface is implicitly public.
return—go and perhaps send back to. This command causes program control to leave the current method and go back to the point that immediately follows the point from which the current method was called.
A value or reference may be sent back too.
short—small integer. This integer data type requires only 2 bytes.
static—always present. This modifier for methods and variables gives them class scope and continuous existence.
Figure A3.1c Reserved words—part C















































































   785   786   787   788   789