1Z0-829 Java Platform Overview and Packaging Practice Question
A developer needs to compile and execute a Java application on a server. Which of the following environments is sufficient to perform both tasks?
⚠ Common exam trap
Watch out — candidates often confuse the JRE as sufficient for development tasks, forgetting that compilation requires the JDK's javac tool, which is not part of the JRE.
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 only
The JDK (Java Development Kit) includes both the javac compiler for compiling source code into bytecode and the java runtime launcher (JRE) for executing that bytecode. The JRE alone provides only the runtime environment (JVM, core libraries) and cannot compile Java source files. Therefore, the JDK is sufficient for both compiling and executing, while the JRE is not.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Both JDK and JRE
Why it's wrong here
JDK already includes JRE so both are unnecessary.
- ✓
JDK only
Why this is correct
JDK contains javac and java, enabling both compilation and execution.
- ✗
Neither JDK nor JRE
Why it's wrong here
Without either, neither compilation nor execution is possible.
- ✗
JRE only
Why it's wrong here
JRE lacks javac, so compilation is not possible.
Go deeper
Related to this question
About these practice questions
This 1Z0-829 question is part of Courseiva's 513-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 1Z0-829 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-829 exam.