1Z0-829 Utilizing Java Object-Oriented Approach Practice Question
Which TWO statements about Java interfaces are true? (Choose two.)
⚠ Common exam trap
A common mix-up: candidates assume interfaces follow the same single-inheritance rule as classes, or that static methods in interfaces cannot have a body, or that default methods prevent overriding, leading them to select incorrect options A, B, or E.
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
✓
Interfaces can contain static methods with a body.
Since Java 8, interfaces can contain static methods with a body. These static methods belong to the interface itself and are not inherited by implementing classes, allowing utility methods to be defined directly within the interface.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
An interface can extend at most one other interface.
Why it's wrong here
An interface can extend multiple interfaces.
- ✗
Fields in an interface can be declared as protected.
Why it's wrong here
Interface fields are implicitly public static final; protected is not allowed.
- ✓
Interfaces can contain static methods with a body.
Why this is correct
Static methods in interfaces are allowed since Java 8.
- ✓
Interfaces can contain private methods.
Why this is correct
Private methods are allowed since Java 9.
- ✗
Default methods are used to prevent method overriding.
Why it's wrong here
Default methods provide a default implementation but can be overridden.
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.