posted 22 years ago
A. static can be applied to : variables, methods,
code Segments and classes if they are nested classes. Static
variables and instance variables are two completely different
scopes of variables. static = one per class, instance = one
per instantiated object.
B. a static method cannot be overridden, but it can be hidden.
C. inner classes can be both static & private. Depends on the
definition of inner classes. Most people nowadays use
top-level-nested-class for a static nested class since the
JLS has said that the definition of an inner class is a
nested non-static class.
D. a reference cannot be made to a non-static variable from a
static method or code block. However, any method, static or
not, may access a static variable.
E. abstract & static both cannot be applied together to a
method. abstract means the method must be over-ridden. static
means it cannot be over-ridden.
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt