Skip to content
Sharp

Object-oriented programming · interview question

Which Java keyword would you use to call one constructor from another in the same class?

Multiple choiceEasychapter-2-curatedpremiumoopconstructors
Choose one answer
Answer and explanation

Correct answer

A. This

Why

The 'this' keyword is used to call another constructor from the same class, enabling constructor chaining to reduce code duplication.

Test yourself on Object-oriented programming

A free test with instant, explained results. No account needed.

Start free test
All Object-oriented programming questions →