Enthuware
Which of the given options if put at //1 will correctly instantiate objects of various classes defined in the following code?
Options:
1. new TestClass().new A();
2. new TestClass.B();
3. new A();
4. new TestClass.A();
5. all of them
Answer is 5.
But when I try this in eclipse it giver me compiler error st static class B that "this modifier can not be applied to class".
Can any one help me please? can we declare inner class static?