---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 17 Edition"
java_version: 17
chapter: "Chapter 5. Loading, Linking, and Initializing"
section: "5"
heading: "Chapter 5. Loading, Linking, and Initializing"
source: https://docs.oracle.com/javase/specs/jvms/se17/html/jvms-5.html
id: "5"
url: https://jvm.obfuscated.software/jvms/se17/5.html
raw: https://jvm.obfuscated.software/jvms/se17/5.md
---

# Chapter 5. Loading, Linking, and Initializing

The Java Virtual Machine dynamically loads, links and initializes classes and interfaces. Loading is the process of finding the binary representation of a class or interface type with a particular name and *creating* a class or interface from that binary representation. Linking is the process of taking a class or interface and combining it into the run-time state of the Java Virtual Machine so that it can be executed. Initialization of a class or interface consists of executing the class or interface initialization method `<clinit>` ([§2.9.2](2.9.2.md)).

In this chapter, [§5.1](5.1.md) describes how the Java Virtual Machine derives symbolic references from the binary representation of a class or interface. [§5.2](5.2.md) explains how the processes of loading, linking, and initialization are first initiated by the Java Virtual Machine. [§5.3](5.3.md) specifies how binary representations of classes and interfaces are loaded by class loaders and how classes and interfaces are created. Linking is described in [§5.4](5.4.md). [§5.5](5.5.md) details how classes and interfaces are initialized. [§5.6](5.6.md) introduces the notion of binding native methods. Finally, [§5.7](5.7.md) describes when a Java Virtual Machine exits.

**Sections:**

- [5.1. The Run-Time Constant Pool](5.1.md)
- [5.2. Java Virtual Machine Startup](5.2.md)
- [5.3. Creation and Loading](5.3.md)
- [5.4. Linking](5.4.md)
- [5.5. Initialization](5.5.md)
- [5.6. Binding Native Method Implementations](5.6.md)
- [5.7. Java Virtual Machine Exit](5.7.md)
