Tuesday, November 29, 2011

Core Java Interview Questions :What is static block?

Static block which exactly executed exactly once when the class is first loaded into JVM. Before going to the main method the static block will execute.:Static block runs once and it is before program enter into main().:after loading java source code loaded into jvm,static blocks if present,will be executed first before main().

No comments:

Post a Comment