Skip to main content

Checkpoint: The Loading Detective

advanced20 min readLesson 128 of 180

Assemble runtime evidence that class literals are silent, forName is loud, and the pool canonicalizes.

Checkpoint: the loading detective

Three facts about the JVM must fall out of your one implementation: a class literal never initializes a class; forName does; and the constant pool makes certain identities true that heap allocation makes false. Assemble the evidence.