Originally posted by KATE MOORE:
Need to write SCJP1.4 ASAP.
Just wanted to make sure this list..
top level class -public, default, final
nested/inner class - default, public, protected, static
methods- public, private, protected, default, native, synchronized, static, abstract, final
variables - public, private, protected, default, final, transient, volatile
construtors - public, protected, private, default, static
free floating blocks - static
Did i missed anything??
Don't forget,
default is an "imaginary" access modifier, you don't write it explicitly.
Top level classes can also accept non-access modifiers strictfp or abstract.
Inner and nested classes can be private, unless they are method local inner classes. In this case, only abstract, final, and strictfp can apply (never both final
and abstract, of course

) Methods can be strictfp just like classes.
Constructors can never be static - it makes no sense.
Just a piece of advise: make sure you're comfortable with the possible combinations of modifiers and what each combination implies.
Good luck on the exam!
