Courseiva
Question 312 of 481
Object-Oriented ProgrammingmediumMultiple SelectObjective-mapped

1Z0-811 Object-Oriented Programming Practice Question

Which THREE are true about Java constructors?

⚠ Common exam trap

A common mix-up: candidates confuse constructors with regular methods and think that final or abstract modifiers apply, but Java explicitly forbids these on constructors because they are not inherited or overridden.

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

A constructor cannot have a return type

Constructors in Java do not have a return type, not even void. If you attempt to add a return type to a constructor, the compiler treats it as a regular method, not a constructor, which can lead to unexpected behavior. This is a fundamental rule of Java syntax.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • A constructor cannot have a return type

    Why this is correct

    A constructor in Java is a special method that initialises an object, and the language specification explicitly prohibits any return type declaration, including `void`, because the constructor’s sole purpose is to allocate and initialise the instance, not to return a value. This satisfies the stem’s constraint that a constructor cannot have a return type, distinguishing it from regular methods which must declare one.

  • A constructor can be marked final

    Why it's wrong here

    Constructors cannot be final.

  • A constructor can be abstract

    Why it's wrong here

    Constructors cannot be abstract.

  • A constructor can be overloaded

    Why this is correct

    Constructors can be overloaded with different parameters.

  • A constructor can be private

    Why this is correct

    A private constructor is used in singleton pattern.

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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 25, 2026

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.

Loading comments…

Sign in to join the discussion.

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.