Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5pUjAyJuUaNEQqzGJ
14 lines
447 B
Plaintext
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
|