Question 473 of 481
1Z0-811 Object-Oriented Programming Practice Question
A developer creates an interface 'Drawable' with a single abstract method 'draw()'. They then create a class 'Circle' that implements Drawable but forgets to provide the draw() method. Circle is not declared abstract. What will happen when compiling Circle?
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
✓
Compilation fails because Circle must either implement draw() or be declared abstract
A class that implements an interface must provide implementations for all abstract methods, or it must be declared abstract. Without the implementation and without being abstract, the class does not compile.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Compilation fails because interfaces cannot be implemented without overriding all methods
Why it's wrong here
While this statement is true, option B is more precise about the two possible remedies.
- ✗
Compilation succeeds, a default empty method is generated
Why it's wrong here
Default methods must be explicitly defined in the interface; no automatic generation occurs.
- ✓
Compilation fails because Circle must either implement draw() or be declared abstract
Why this is correct
Correct. The class must either implement the abstract method or be declared abstract itself.
- ✗
Compilation succeeds but a warning is issued
Why it's wrong here
It is a compile error, not a warning.
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 →
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.