Files

14 lines
447 B
Plaintext

== loadClass: loads and links, does NOT initialise ==
loaded com.acme.Noisy, nothing printed above this line
== Class.forName(name, false, loader): same, explicitly ==
loaded com.acme.Noisy, nothing printed above this line
== First real use triggers initialisation (static method call) ==
>> Noisy static initialiser ran
== Class.forName(name, true, loader): loads and initialises immediately ==
>> Noisy static initialiser ran
done