0
0
Javaprogramming~5 mins

JDK, JRE, and JVM difference in Java - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does JVM stand for and what is its main role?
JVM stands for Java Virtual Machine. Its main role is to run Java bytecode by converting it into machine code that the computer can understand.
Click to reveal answer
beginner
What is JRE and what does it include?
JRE stands for Java Runtime Environment. It includes the JVM and the libraries needed to run Java programs but does not include tools for developing Java programs.
Click to reveal answer
beginner
What is JDK and how is it different from JRE?
JDK stands for Java Development Kit. It includes the JRE plus development tools like the compiler (javac) needed to write and compile Java programs.
Click to reveal answer
beginner
Which component do you need to run a Java program on your computer?
You need the JRE to run a Java program because it contains the JVM and libraries required to execute the program.
Click to reveal answer
beginner
Which component do you need to write and compile Java programs?
You need the JDK because it contains the JRE plus tools like the Java compiler to write and compile Java programs.
Click to reveal answer
What does JVM do?
ARuns Java bytecode by converting it to machine code
BCompiles Java source code into bytecode
CProvides tools to write Java programs
DContains libraries to develop Java applications
Which of these is included in the JRE?
AJava compiler
BDebugger tools
CSource code editor
DJava Virtual Machine
If you want to write and compile Java code, which do you need?
AJRE
BJVM
CJDK
DJava source code
Which component is responsible for converting bytecode to machine code?
AJVM
BJRE
CJDK
DJava compiler
Which of these is NOT part of the JDK?
AJava compiler
BOperating system kernel
CJava source code editor
DJVM
Explain the difference between JDK, JRE, and JVM in simple terms.
Think about running vs developing Java programs.
You got /3 concepts.
    Why do you need JDK to write Java programs but only JRE to run them?
    Consider what tools are needed for writing vs running.
    You got /3 concepts.