- [non-anonymous, method-local, inner class] : Look for semi-colon at closing bracket. If not there... Compiler error.
Originally posted by Denes Doma:
I tried this one:
- [top level class] : Look for any other access modifier besides public and [default access]... Compiler error.
You're right, but I don't know why this happens.
And I can't find it anywhere? (is it too simple?)
Pls. tell me why an outer class can not be
private, protected, even static?