sastore

Store into short array

Bytecode

Type Description
u1 sastore opcode = 0x56 (86)

Stack ..., array, index, value => ...

Description

The arrayref must be of type reference and must refer to an array whose components are of type short.

Both index and value must be of type int. The arrayref, index, and value are popped from the operand stack.

The int value is truncated to a short and stored as the component of the array indexed by index.

Exceptions

ArrayIndexOutOfBoundsException - index is < 0 or >= arrayref.length

NullPointerException - arrayref is null