posted 13 years ago
Static nested class is an just static member of outer class.
Following are the ways to instantiate the static nested class.
case 1. From outer class.
From outer class you can access static class directly by name.
Inner in = new Inner();
case 2. From outside the outer class.
The instantiation of inner class from outside the outer class depends whether it is visible to that class or not.
If it is visible then you can use following syntax.
Outer.Inner oi = new Outer.Inner();
hth
Jagdev