Question 402 of 481
JDK vs JRE: What's the Difference?
What is the primary role of the Java Development Kit (JDK) compared to the JRE?
Quick Answer
The relationship between the JDK and JRE is containment, not overlap, which is the detail that resolves most of the confusion around this comparison: the JDK includes the full JRE inside it and adds the tools a developer specifically needs on top, such as the javac compiler that turns source code into bytecode, a debugger, and other development utilities. The JRE alone is deliberately narrower — it supplies only what's needed to execute already-compiled Java applications, primarily the JVM and core libraries, without any of the tooling required to write or compile new code in the first place. This is why a machine that only needs to run Java applications doesn't need the JDK installed, while a machine used for actual Java development does — the JDK is a superset built for creating software, the JRE is the subset built for running it. Getting the containment direction backwards, thinking the JRE includes the JDK rather than the other way around, is the most common way to miss a question like this, so it's worth anchoring the mental model as 'JDK equals JRE plus development tools' rather than the reverse.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
JDK includes compilers and tools for developing Java applications.
The JDK (Java Development Kit) is a software development environment used for developing Java applications. It includes the JRE (Java Runtime Environment) plus development tools such as the Java compiler (javac), debugger, and other utilities. In contrast, the JRE provides only the runtime environment needed to run Java applications. Therefore, option D is correct because the JDK includes compilers and tools for development. Option A is incorrect because the JDK provides far more than just a debugger and profiler; it includes the compiler and other essential tools. Option B is incorrect because the JDK includes the JRE, not the other way around. Option C is incorrect because the JRE is required to run Java applications, while the JDK is needed for development; the JDK is not required to run applications.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
JDK provides only a debugger and profiler.
Why it's wrong here
JDK includes many tools, not just debugger/profiler.
- ✗
JRE includes the JDK and additional libraries.
Why it's wrong here
JDK includes JRE, not the opposite.
- ✗
JDK is required to run Java applications, whereas JRE is not.
Why it's wrong here
JRE is sufficient to run applications; JDK is for development.
- ✓
JDK includes compilers and tools for developing Java applications.
Why this is correct
JDK contains javac, debugger, etc., which JRE lacks.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on 1Z0-811
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Refer to the exhibit. A developer runs the command java -version on a system. Which statement about this Java installation is correct?
medium- A.This is a Java SE 17 installation.
- ✓ B.This is a Java Runtime Environment (JRE) installation.
- C.This is a Java SE 8 installation.
- D.This is a Java Development Kit (JDK) installation.
Why B: The output shows "Runtime Environment" and no compiler information, indicating a JRE. Version 11.0.12 is Java SE 11 LTS. Option C and D are wrong because the version is 11, not 8 or 17. Option A is incorrect because JDK would include the compiler.
Last reviewed: Jun 23, 2026
This 1Z0-811 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-811 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.