posted 24 years ago
Hello everybody
This is some discussion about Inner Class
There a 4 categories of "nested" classes
1)Top-level Nested classes and Interfaces
2)Non-Static Inner classes
3)Local classes
4)Anonymous classes
2,3,4 collectively known as "inner" classes
and Top-level Nested classes and Interfaces(1) are called static inner classes(I think so).
Am I right?
So if the question is that inner classes can be declared static so what we have to select either yes or no ? as inner classes(2,3,4 categories ) we cannot use a static keyword(they can be implicitly static if they are defined in static context(i.e static method,static initializer)
Please clear doubt and anwer this.I am little bit confused.
Thanx
Swati