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

# aload\_\<n>

## Operation

Load `reference` from local variable

## Format

```
aload_<n>
```

## Forms

*aload_0* = 42 (0x2a)

*aload_1* = 43 (0x2b)

*aload_2* = 44 (0x2c)

*aload_3* = 45 (0x2d)

## Operand Stack

... →

..., *objectref*

## Description

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

## Notes

An *aload\_\<n>* instruction cannot be used to load a value of type `returnAddress` from a local variable onto the operand stack. This asymmetry with the corresponding *astore\_\<n>* instruction ([§*astore\_\<n>*](6.5.astore_n.md)) is intentional.

Each of the *aload\_\<n>* instructions is the same as *aload* with an *index* of <*n*>, except that the operand <*n*> is implicit.
