Hi Praful,
Thank you for replying! Also thanks for pointing out my error
I still don't know the terminology well.
I've tried ic3 & ic4 with other class, and I've got the following errors.
Test.java:293: cannot resolve symbol
symbol : class InnerClass
location: class
Test InnerClass ic3 = new OuterClass().new InnerClass();
C:\j2sdk1.4.1\bin>javac Test.java
Test.java:294: not an enclosing class: OuterClass
OuterClass.InnerClass ic4 = new OuterClass.InnerClass();
The only line that works fine and I can think of is: OuterClass.InnerClass ic3 = new OuterClass().new InnerClass();
Could you explain to me why is it so?