it does not need is fine.. but what harm is there if i give it..why compiler complains.. compiler is surely cheating in this case.. similar analogy : to access static method we dont need a object. but if u call on object its fine..
Hey There is no such thing as a static class ..The static modifier just says that its a static member of the outer class. AND it can be acessed without an instance of the outer class!!!
class A{ static class B{} } class test static public void main(Sring ar[]) { A.B x=new A.B(); } There is no instance of the outer class here the new apllies to the inner class which is being acessed thru the outer Cheers