Skip to content
Sharp

Object-oriented programming · interview question

How would you explain the keyword used to refer to the current object instance in a Java interview?

Multiple choiceEasychapter-2-curatedpremiumoopobject-references
Choose one answer
Answer and explanation

Correct answer

A. This

Why

The 'this' keyword is used within an instance method or constructor to refer to the current object.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →