---
title: "Discussion on \"This Keyword in Java.\" | Hashnode"
description: "Discussion on \"This Keyword in Java.\". This keyword is a reference variable that refer to a current Object.\nThis can be used to refer current class instance variable.\nIf we don't use this keyword.\nclass Staff{\nint idno;\nString name;\nlong salary;\nStaff(int idno,String name,long salary){\nId..."
url: "https://hashnode.com/posts/this-keyword-in-java/63e32c3926228741a74aa059"
---

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

Discussion

# [This Keyword in Java.](https://akashpawal.hashnode.dev/this-keyword-in-java?utm_source=hashnode&utm_medium=feed)

This keyword is a reference variable that refer to a current Object. This can be used to refer current class instance variable. If we don't use this keyword. class Staff{ int idno; String name; long salary; Staff(int idno,String name,long salary){ Id...

Feb 8, 2023 · 2 min read · akashpawal.hashnode.dev  
Read the article

-   [#wemakedevs](https://hashnode.com/tag/wemakedevs)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#programming](https://hashnode.com/tag/programming)
-   [#java](https://hashnode.com/tag/java)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Blogs in Shorts.](https://hashnode.com/@Vicky254)

@Vicky254 · Mumbai

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

Self - Motivated.

Learner, coder, Tech head, Runner &amp; part time Administrator.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
