Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavabytecode and operand stackSingle-choice MCQ

Examine this expression's bytecode shape. After the iconst/iload sequence, an iadd executes. What is the precise effect of iadd on the JVM operand stack?

int x = a + b; // ...iload a; iload b; iadd; istore x