after compilation there will be two class files : Outer.class & Outer$Inner.class
When we will run this inner class with
java Outer$Inner command this will give an error NoSuchMethodExist . Because it doesn't have a main method .And we can't have a main method in inner class because this method has static in its signature .
Now my question is why inner class can't have static methods ??? thanks a lot .
[ January 13, 2005: Message edited by: rathi ji ]