---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 26 Edition"
java_version: 26
chapter: "Chapter 5. Loading, Linking, and Initializing"
section: "5.4.3.1"
heading: "5.4.3.1. Class and Interface Resolution"
parent: "5.4.3. Resolution"
source: https://docs.oracle.com/javase/specs/jvms/se26/html/jvms-5.html#jvms-5.4.3.1
id: "5.4.3.1"
url: https://jvm.obfuscated.software/jvms/se26/5.4.3.1.html
raw: https://jvm.obfuscated.software/jvms/se26/5.4.3.1.md
---

# 5.4.3.1. Class and Interface Resolution

To resolve an unresolved symbolic reference from D to a class or interface C denoted by `N`, the following steps are performed:

1. The defining loader of D is used to load and thereby create a class or interface denoted by `N`. This class or interface is C. The details of the process are given in [§5.3](5.3.md).

   Any exception that can be thrown as a result of failure to load and thereby create C can thus be thrown as a result of failure of class and interface resolution.

2. If C is an array class and its element type is a `reference` type, then a symbolic reference to the class or interface representing the element type is resolved by invoking the algorithm in §5.4.3.1 recursively.

3. Finally, access control is applied for the access from D to C ([§5.4.4](5.4.4.md)).

If steps 1 and 2 succeed but step 3 fails, C is still valid and usable. Nevertheless, resolution fails, and D is prohibited from accessing C.
