---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 23 Edition"
java_version: 23
chapter: "Chapter 6. The Java Virtual Machine Instruction Set"
section: "6.1"
heading: "6.1. Assumptions: The Meaning of \"Must\""
parent: "Chapter 6. The Java Virtual Machine Instruction Set"
source: https://docs.oracle.com/javase/specs/jvms/se23/html/jvms-6.html#jvms-6.1
id: "6.1"
url: https://jvm.obfuscated.software/jvms/se23/6.1.html
raw: https://jvm.obfuscated.software/jvms/se23/6.1.md
---

# 6.1. Assumptions: The Meaning of "Must"

The description of each instruction is always given in the context of Java Virtual Machine code that satisfies the static and structural constraints of [§4 (*The `class` File Format*)](4.md). In the description of individual Java Virtual Machine instructions, we frequently state that some situation "must" or "must not" be the case: "The *value2* must be of type `int`." The constraints of [§4 (*The `class` File Format*)](4.md) guarantee that all such expectations will in fact be met. If some constraint (a "must" or "must not") in an instruction description is not satisfied at run time, the behavior of the Java Virtual Machine is undefined.

The Java Virtual Machine checks that Java Virtual Machine code satisfies the static and structural constraints at link time using a `class` file verifier ([§4.10](4.10.md)). Thus, the Java Virtual Machine will only attempt to execute code from valid `class` files. Performing verification at link time is attractive in that the checks are performed just once, substantially reducing the amount of work that must be done at run time. Other implementation strategies are possible, provided that they comply with *The Java Language Specification, Java SE 23 Edition* and *The Java Virtual Machine Specification, Java SE 23 Edition*.
