Language syntax

JVM operand stack

Trace a representative integer addition method.

Formal Syntax & Structure

java syntaxjava
iload_0; iload_1; iadd; ireturn

Working Example

Example Snippetjava
public class Main {    static int add(int a, int b) { return a + b; }    public static void main(String[] args) throws Exception {        System.out.println(add(7, 5));    }}
Java Reference