Keyword Implication
public The method is visible to all classes in the program.
private The method is visible only inside the class.
protected The method is visible to classes inside the package and to subclasses.
final The method cannot be overridden in subclasses.
abstract The method is declared without an implementation.
static The method is independent of any object of the class but can address only static variables.
native The implementation must be provided in machine language for a specific system.
strictfp All floating-point math in the method must reduce all intermediate results to the standard 32- or 64-bit form.
synchronized A Thread entering this method obtains a lock on the object.
throws It introduces a list of checked exceptions that the method may throw.
void If the method does not return a value, the word "void" must appear as the return type.
|