← Back to Java

this Keyword

Javajava

The Question

What is the purpose of the this keyword in Java?

What a Strong Answer Covers

  • refers to current object instance
  • disambiguate instance vs parameter names
  • constructor chaining this() first statement
  • pass current object as argument
  • return this for method chaining

Related Questions

  • JVM vs JRE vs JDK
  • Java Platform Independence
  • How JVM Works
  • Main Features of Java
  • public static void main

Practice This Question

Get AI-graded feedback on your answer with follow-up probes on weak points.

Take the Free Assessment
GrindQuestionsAITechnical interview assessment
TermsPrivacyAbout