---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 13 Edition"
java_version: 13
chapter: "Chapter 6. The Java Virtual Machine Instruction Set"
section: "6.2"
heading: "6.2. Reserved Opcodes"
parent: "Chapter 6. The Java Virtual Machine Instruction Set"
source: https://docs.oracle.com/javase/specs/jvms/se13/html/jvms-6.html#jvms-6.2
id: "6.2"
url: https://jvm.obfuscated.software/jvms/se13/6.2.html
raw: https://jvm.obfuscated.software/jvms/se13/6.2.md
---

# 6.2. Reserved Opcodes

In addition to the opcodes of the instructions specified later in this chapter, which are used in `class` files ([§4 (*The `class` File Format*)](4.md)), three opcodes are reserved for internal use by a Java Virtual Machine implementation. If the instruction set of the Java Virtual Machine is extended in the future, these reserved opcodes are guaranteed not to be used.

Two of the reserved opcodes, numbers 254 (0xfe) and 255 (0xff), have the mnemonics *impdep1* and *impdep2*, respectively. These instructions are intended to provide "back doors" or traps to implementation-specific functionality implemented in software and hardware, respectively. The third reserved opcode, number 202 (0xca), has the mnemonic *breakpoint* and is intended to be used by debuggers to implement breakpoints.

Although these opcodes have been reserved, they may be used only inside a Java Virtual Machine implementation. They cannot appear in valid `class` files. Tools such as debuggers or JIT code generators ([§2.13](2.13.md)) that might directly interact with Java Virtual Machine code that has been already loaded and executed may encounter these opcodes. Such tools should attempt to behave gracefully if they encounter any of these reserved instructions.
