Can anyone explain the output of following program? I thought constructors are initialized before instance variables. So I was expecting the output to be \"XZYY\".
The correct order of initialisation is:
See sections §2.17.5-6 of the Java Virtual Machine Specification.