posted 17 years ago
class E {
E() {System.out.print("E");}
static class Z {Z(){System.out.print("Z");}}
public static void main(String args[]) {
new E.Z();
}}
here in thew above shown code,Z is a static class and also an inner class of E ,when we use class name as refernce and a dot operator we call the static members of class that is constructor Z is called..........Later you try with below code you will get constructor of class E to be invoked