I know that this
refers to a current object. But I do not know when I really need to use it. For example, will be there any difference if I use x
i
“This” keyword in java is used to refer current class objects.
There are 6 uses of “this” keyword in java
ref: https://stacktraceguru.com/java/this-keyword-in-java