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

# dload

## Operation

Load `double` from local variable

## Format

```
dload
index
```

## Forms

*dload* = 24 (0x18)

## Operand Stack

... →

..., *value*

## Description

The *index* is an unsigned byte. Both *index* and *index*+1 must be indices into the local variable array of the current frame ([§2.6](2.6.md)). The local variable at *index* must contain a `double`. The *value* of the local variable at *index* is pushed onto the operand stack.

## Notes

The *dload* 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.
