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

# 5.4.1. Verification

*Verification* ([§4.10](4.10.md)) ensures that the binary representation of a class or interface is structurally correct ([§4.9](4.9.md)). Verification may cause additional classes and interfaces to be loaded ([§5.3](5.3.md)) but need not cause them to be verified or prepared.

If the binary representation of a class or interface does not satisfy the static or structural constraints listed in [§4.9](4.9.md), then a `VerifyError` must be thrown at the point in the program that caused the class or interface to be verified.

If an attempt by the Java Virtual Machine to verify a class or interface fails because an error is thrown that is an instance of `LinkageError` (or a subclass), then subsequent attempts to verify the class or interface always fail with the same error that was thrown as a result of the initial verification attempt.
