Courseiva
Object-Oriented ProgramminghardMultiple ChoiceObjective-mapped

1Z0-811 Object-Oriented Programming Practice Question

Consider the following interface: public interface Drawable { void draw(); } A developer implements Drawable in class Circle. Which statement about the implementation is correct?

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 draw method must be declared public

Interface methods are implicitly public and abstract unless declared as default or static. In this interface, draw() is abstract, so it cannot have a body. Therefore, the implementing class must declare draw() as public (making A correct). Option D is false because the interface method has no body. Option C is false because Circle provides an implementation, so the condition for being abstract is not met. Thus, only A is correct, making B incorrect.

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 draw method must be declared public

    Why this is correct

    Correct: Interface methods are implicitly public, so the implementing class must declare the method as public.

  • Both A and D

    Why it's wrong here

    Incorrect: Only A is correct; D is false because the interface method is abstract and cannot have a body.

  • The class must be abstract if it does not provide body for draw

    Why it's wrong here

    Incorrect: This statement is true in general, but Circle provides a body for draw(), so it does not need to be abstract.

  • The draw method can have a body in the interface

    Why it's wrong here

    Incorrect: The interface method is declared as void draw(); without default, so it is abstract and cannot have a body.

  • The draw method must be declared final

    Why it's wrong here

    Incorrect: Interface methods cannot be declared final; they are meant to be overridden.

About these practice questions

Courseiva writes every 1Z0-811 question from scratch — 481 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 →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.