🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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"?

  1. A.It compiles directly to Windows code
  2. B.Bytecode runs on any OS that has a JVM
  3. C.It only runs in browsers
  4. 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 →