类加载
Java · 6 notes
- 7.4 Class Lifecyclehistorical
The class lifecycle: loading, linking, initialization, use, unloading, class loaders, parent delegation, and related questions.
- Class Initialization Orderhistorical
When initialization is triggered, initialization rules, and examples for a single class and an inheritance hierarchy.
- Custom Class Loaderhistorical
When a custom class loader is needed, how to implement one with findClass or loadClass, an example, and a reference.
- 7.14 Object Creation Processhistorical
Code, bytecode, explanation, and a proposed solution for object-creation instruction reordering.
- 7.16 Object Layout in Memoryhistorical
Object composition, object headers, instance data, padding, and a JOL experiment.
- How Objects Are Locatedhistorical
Oracle JDK and OpenJDK use direct pointers: fast access, but pointers need to be updated if GC moves surviving objects.