This one is from JTest
Which statement is true about a non-static inner class?
A. It must implement an interface.
B. It is accessible from any other class.
C. It can only be instantiated in the enclosing class.
D. It must be final if it is declared in a method scope.
E. It can access private instance variables in the
enclosing object.
Ans given is E.
My ans B,D,E
I think B is partially true.
inner class can be accessed from outer class if it is not declared private.(and ofcourse we have to create the instance of enclosing class).
c)inner class inside method scope is implicitly final
We cannot subclass an inner class declared inside a method scope.
Please correct me if I am wrong.