Skip to content
Sharp

JVM Architecture · interview question

Which of the following statements about JVM bytecode verification is true?

Multiple choiceMediumchapter-14-curatedpremiumjvm-architectureclass-loading
Choose one answer
Answer and explanation

Correct answer

A. Bytecode verification ensures memory safety by checking type correctness and stack usage.

Why

Bytecode verification ensures that bytecode adheres to the JVM's constraints, checking for type correctness and proper stack usage to maintain memory safety. It occurs before execution, not after JIT compilation, and is part of the class loading process.

Test yourself on JVM Architecture

A free test with instant, explained results. No account needed.

Start free test
All JVM Architecture questions →