The static block is only loaded when the class object is created by the JVM for the 1st time whereas init {} block is loaded every time class object i ...
Search results for jvm
Can I import same package/class twice? Will the JVM load the package twice at runtime?
Posted by Devin
One can import the same package or same class multiple times. Neither compiler nor JVM complains abt it. And the JVM will internally load the class on ...
No. It is by default loaded internally by the JVM.
[Source: JAGAN MOHAN "Interview questions bible"]
[Source: JAGAN MOHAN "Interview questions bible"]
Yes it is possible. While starting the application we mention the class name to be run. The JVM will look for the Main method only in the class whose ...
« previous1 next »
