posted 17 years ago
Simple,
when you do new Z(), Z's superclass constructor is called which is X's constructor but X gets a new instance of Y so Y's constructor is called so prints "Y", than "X" and since there is "Y y = new Y()" Y is printed and finally Z's constructor prints Z
so its yxyz
...vola