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

# lastore

## Operation

Store into `long` array

## Format

```
lastore
```

## Forms

*lastore* = 80 (0x50)

## Operand Stack

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

...

## Description

The *arrayref* must be of type `reference` and must refer to an array whose components are of type `long`. The *index* must be of type `int`, and *value* must be of type `long`. The *arrayref*, *index*, and *value* are popped from the operand stack. The `long` *value* is stored as the component of the array indexed by *index*.

## Run-time Exceptions

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

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