Hi,
Inner classes can not be static .it is very true. jls states that any class which is in direct scope of other class (& is static) is a top level class.although it is inside of scope of another class.Hope this clears the doubts.
Originally posted by ego hu:
Innner class can be static?
As I remember that some mock exam said that the inner class
can not be static, but some other mock exam said it is
possibe? Who is righ?
Maybe, the inner class defined in a non-static method
can not be static.
Who knows the answer?