---
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.5.dastore"
heading: "dastore"
parent: "6.5. Instructions"
source: https://docs.oracle.com/javase/specs/jvms/se13/html/jvms-6.html#jvms-6.5.dastore
id: "6.5.dastore"
url: https://jvm.obfuscated.software/jvms/se13/6.5.dastore.html
raw: https://jvm.obfuscated.software/jvms/se13/6.5.dastore.md
---

# dastore

## Operation

Store into `double` array

## Format

```
dastore
```

## Forms

*dastore* = 82 (0x52)

## Operand Stack

..., *arrayref*, *index*, *value* →

...

## Description

The *arrayref* must be of type `reference` and must refer to an array whose components are of type `double`. The *index* must be of type `int`, and value must be of type `double`. The *arrayref*, *index*, and *value* are popped from the operand stack. The `double` *value* undergoes value set conversion ([§2.8.3](2.8.3.md)), resulting in *value*', which is stored as the component of the array indexed by *index*.

## Run-time Exceptions

If *arrayref* is `null`, *dastore* throws a `NullPointerException`.

Otherwise, if *index* is not within the bounds of the array referenced by *arrayref*, the *dastore* instruction throws an `ArrayIndexOutOfBoundsException`.
