What is true about inner classes?
A) inner class can only be instantiated in its outer class.
B) Inner class be protected or private
C) Anonymous inner class can be both an explicit subclass and implements an interface
D) Anonymous inner class declare and instantiated at same place.
E) An instance of anonymous inner class can only be created in its outer class.
I marked D and E. But mock
test gives B and D.
Could some one please explain why B is correct and not E.
Thanks in advance