---
title: "Discussion on \"Mastering 'this' keyword in Java.\" | Hashnode"
description: "Discussion on \"Mastering 'this' keyword in Java.\". We mostly use this keyword as a reference to the current object in a method or a constructor. In simple words, it is a reference variable that points to the current object. In the below example, this keyword is used to refer to current class object.\n..."
url: "https://hashnode.com/posts/mastering-this-keyword-in-java/5f4e0e2093e8de1a4cf67630"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mastering 'this' keyword in Java.](https://laasyasettyblog.hashnode.dev/mastering-this-keyword-in-java?utm_source=hashnode&utm_medium=feed)

We mostly use this keyword as a reference to the current object in a method or a constructor. In simple words, it is a reference variable that points to the current object. In the below example, this keyword is used to refer to current class object. ...

Sep 1, 2020 · 7 min read · laasyasettyblog.hashnode.dev  
Updated Sep 2, 2020  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#coding](https://hashnode.com/tag/coding)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#programming](https://hashnode.com/tag/programming)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Sai Laasya Vabilisetty](https://hashnode.com/@Laasya_Setty)

@Laasya\_Setty · India

  
[View profile](https://hashnode.com/@Laasya_Setty)

Java Developer | Machine Learning| Tech Blogger

I am a Java developer and Machine learning enthusiast.

## Responses 4

Markdown supported · ⌘↵ to post

[Ritvij Kumar Sharma](https://hashnode.com/@ritvij14)

[Sep 2, 2020](https://hashnode.com/posts/mastering-this-keyword-in-java/5f4e0e2093e8de1a4cf67630/comment/5f4f5d1af6e5c425ea696145)

Great article! Saving for future reference :)

[Sai Laasya Vabilisetty](https://hashnode.com/@Laasya_Setty)

[Sep 2, 2020](https://hashnode.com/posts/mastering-this-keyword-in-java/5f4e0e2093e8de1a4cf67630/comment/5f4f5d1af6e5c425ea696145#reply-5f4f7123f6e5c425ea6963dc)

This means a lot thankyou Ritvij

[Skay](https://hashnode.com/@skay)

[Sep 1, 2020](https://hashnode.com/posts/mastering-this-keyword-in-java/5f4e0e2093e8de1a4cf67630/comment/5f4e8aa823f4eb1d4ca9a12e)

Great article! Interestingly, I had written about the 'this' keyword in Javascript.

[blog.skay.dev/what-is-this-in-javascript](https://blog.skay.dev/what-is-this-in-javascript)

[Sai Laasya Vabilisetty](https://hashnode.com/@Laasya_Setty)

[Sep 2, 2020](https://hashnode.com/posts/mastering-this-keyword-in-java/5f4e0e2093e8de1a4cf67630/comment/5f4e8aa823f4eb1d4ca9a12e#reply-5f4eeef050b5c61ec6ef4e14)

Thankyou Skay😊 Yours is very informative article 💯
