1Z0-829 Utilizing Java Object-Oriented Approach Practice Question
Which THREE conditions must be true for a method to override another method in a subclass? (Choose three.)
⚠ Common exam trap
Oracle often tests the misconception that overriding requires the same or more restrictive access, but the correct rule is the opposite: the overriding method must have the same or more accessible (less restrictive) access modifier.
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
✓
The method name must be the same.
Method overriding requires the subclass method to have exactly the same name as the superclass method. This is a fundamental rule of polymorphism in Java, ensuring that the JVM can correctly resolve the overridden method at runtime based on the method signature.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The method must be static in the superclass.
Why it's wrong here
Static methods cannot be overridden; they can be hidden.
- ✗
The access modifier must be the same or more restrictive.
Why it's wrong here
It must be the same or less restrictive (broader).
- ✓
The method name must be the same.
Why this is correct
Overriding requires same method name.
- ✓
The parameter list must be the same.
Why this is correct
Overriding requires same parameter list.
- ✓
The return type must be the same or a subtype (covariant return type).
Why this is correct
Covariant return types are allowed.
Visual reference
Go deeper
Related to this question
About these practice questions
Courseiva writes every 1Z0-829 question from scratch — 513 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.