The class instance creation expression new ppp.Z() creates an instance of the static nested class E.Z.
New ppp.Z();//displaying Z
I tried writing the above coding in two lines. But I ended up with error. Like this
ppp myppp=new ppp();//---------this one displaying E ppp.Z myZ=myppp.new Z(); Ans I got the error--------qualified new of static class. What does this error mean?
Ans also Creating the instance of Z is accepting (ok Creating instance of static variable or not creating instance that will display in static context.) Creating the instance of non static enclosing class is giving error? How? I am totally confused. Please help me.