类加载
Java · 6 notes
- 7.4 Class Lifecyclehistorical
Java classes pass through loading, linking, initialization, use, and unloading. These notes organize the work performed at each stage.
- Class Initialization Orderhistorical
Active use can trigger Java class initialization, including prior parent-class initialization. These notes use code examples to examine class and instance initialization order.
- Custom Class Loaderhistorical
Custom class loaders can load classes from selected paths and isolate same-named classes in different applications. These notes examine implementations through those scenarios.
- 7.14 Object Creation Processhistorical
Java object creation involves allocation, constructor invocation, and storing a reference. These notes trace a new expression through bytecode.
- 7.16 Object Layout in Memoryhistorical
Java objects store headers and instance data, with arrays also carrying length information. These notes compare ordinary-object and array layouts.
- How Objects Are Locatedhistorical
Java can locate objects through direct pointers. These notes compare object-access approaches and examine references when garbage collection moves objects.