1 class X 2 { 3 X() 4 { 5 System.out.println("x"); //2 6 } 7 Y y=new Y(); //1 8 } 9 class Y10 {11 12 Y()13 {14 System.out.println("y");15 }16 }17 class Z extends X{18 19 /**20 * @param args21 */22 Y y=new Y(); //323 Z()24 {25 System.out.println("z"); //426 }27 public static void main(String[] args)28 {29 // TODO Auto-generated method stub30 new Z();31 }32 33 }