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

Consider the JVM operand stack while executing the expression `a - b - c` (all ints) compiled to bytecode. After the JVM executes the first `isub`, what is on top of the operand stack and why does left-associativity matter for the bytecode order?

int x = a - b - c;