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

# goto_w

## Operation

Branch always (wide index)

## Format

```
goto_w
branchbyte1
branchbyte2
branchbyte3
branchbyte4
```

## Forms

*goto_w* = 200 (0xc8)

## Operand Stack

No change

## Description

The unsigned bytes *branchbyte1*, *branchbyte2*, *branchbyte3*, and *branchbyte4* are used to construct a signed 32-bit *branchoffset*, where *branchoffset* is (*branchbyte1* `<<` 24) | (*branchbyte2* `<<` 16) | (*branchbyte3* `<<` 8) | *branchbyte4*. Execution proceeds at that offset from the address of the opcode of this *goto_w* instruction. The target address must be that of an opcode of an instruction within the method that contains this *goto_w* instruction.

## Notes

Although the *goto_w* instruction takes a 4-byte branch offset, other factors limit the size of a method to 65535 bytes ([§4.11](4.11.md)). This limit may be raised in a future release of the Java Virtual Machine.
