---
title: "What is “this” keyword in java?"  
description: "What is “this” keyword in java?"  
author: "Anonymous User"  
published: 2019-09-07  
updated: 2020-09-22  
canonical: https://www.mindstick.com/interview/33576/what-is-this-keyword-in-java  
category: "java"  
tags: ["java", "oops", "programming language"]  
reading_time: 2 minutes  

---

# What is “this” keyword in java?

Into the instance method or a constructor, this is a reference to the current object — the object whose method or constructor is being called.

We can send to any member of the current object from within an instance method or a constructor by using this.

- Usage of this keyword
- Used to refer current class instance variable.
- To invoke the current class constructor.
- It’s can be passed as an argument in the method call.
- It’s can be passed as an argument in the constructor call.
- Used to return the current class instance.
- Used to invoke current class method (implicitly)

## Answers

### Answer by Anonymous User

Into the instance method or a constructor, this is a reference to the current object — the object whose method or constructor is being called.

We can send to any member of the current object from within an instance method or a constructor by using this.

- Usage of this keyword
- Used to refer current class instance variable.
- To invoke the current class constructor.
- It’s can be passed as an argument in the method call.
- It’s can be passed as an argument in the constructor call.
- Used to return the current class instance.
- Used to invoke current class method (implicitly)


---

Original Source: https://www.mindstick.com/interview/33576/what-is-this-keyword-in-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
