LearnFrenzy
Sign in Take a free test

Java Basics, Syntax and Data Types · Java Basics MCQ · Question 2

JVM, JRE and JDK Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 2 Back to Exercise

Which statement about JVM, JRE and JDK is correct?

  • A The JVM contains the JDK
  • B The JDK contains the JRE (JVM + libraries) plus development tools like javac Correct
  • C The JRE contains javac
  • D They are three names for the same thing
Correct Answer: Option B

JDK ⊃ JRE ⊃ JVM. To compile you need the JDK; to run, a runtime.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links