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

# aload

## Operation

Load `reference` from local variable

## Format

```
aload
index
```

## Forms

*aload* = 25 (0x19)

## Operand Stack

... →

..., *objectref*

## Description

The *index* is an unsigned byte that must be an index into the local variable array of the current frame ([§2.6](2.6.md)). The local variable at *index* must contain a `reference`. The *objectref* in the local variable at *index* is pushed onto the operand stack.

## Notes

The *aload* instruction cannot be used to load a value of type `returnAddress` from a local variable onto the operand stack. This asymmetry with the *astore* instruction ([§*astore*](6.5.astore.md)) is intentional.

The *aload* opcode can be used in conjunction with the *wide* instruction ([§*wide*](6.5.wide.md)) to access a local variable using a two-byte unsigned index.
