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?
✗ Incorrect
JVM runs Java bytecode by converting it into machine code that the computer can execute.
Which of these is included in the JRE?
✗ Incorrect
JRE includes the JVM and libraries needed to run Java programs but not development tools like the compiler.
If you want to write and compile Java code, which do you need?
✗ Incorrect
JDK includes the JRE plus tools like the compiler needed to write and compile Java programs.
Which component is responsible for converting bytecode to machine code?
✗ Incorrect
JVM converts Java bytecode into machine code so the computer can run it.
Which of these is NOT part of the JDK?
✗ Incorrect
The operating system kernel is not part of the JDK; JDK contains Java tools and runtime components.
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.