Yes AmanZeeK Verma , it seems that ( if we declare x as public static final and initializa it in the spot) the compiler automatically replaces A.x with 10 without even loading the class in the JVM.
Thanks very much for the enlighiting
love demgracy, knowledge demogracy, open source and Java - OCPJP 76%
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop