class A
{
static class B
{
}
class C
{
}
}
class nestedclass
{
public static void main(String args[])
{
A a = new A();//outer class instance created.
A.B b = new A.B();//nested class instance.
A.C c = new C();//inner class instance created.
}
}
{
static class B
{
}
class C
{
}
}
class nestedclass
{
public static void main(String args[])
{
A a = new A();//outer class instance created.
A.B b = new A.B();//nested class instance.
A.C c = new C();//inner class instance created.
}
}