← Quiz: Java Introduction: all 10 questions
Quiz: Java Introduction · Question 4 of 10
What makes Java "write once, run anywhere"?
What makes Java "write once, run anywhere"?
- A.It compiles directly to Windows code
- B.Bytecode runs on any OS that has a JVM
- C.It only runs in browsers
- D.It is interpreted from source each time
Answer & explanation
Correct answer: Bytecode runs on any OS that has a JVM
The JVM on each OS runs the same bytecode.
Can you get the rest right without peeking?
Take the timed Quiz: Java Introduction quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →