In Java, this usually refers to the current object, or to a member of the current object, and you can use this for this purpose. Another use of this is to invoke another constructor of the current object.
The most common scenario is that a parameter name in your method has the same name as a member of the current object, so you need to explicitly use the This keyword to kill you to use a member, the method "this. Member name", and the one without this is the formal parameter. In addition, You can also use the "this. Method name" to refer to a method of the current object, but this is not necessary, you can directly use the method name to access the method, the compiler will know which one you want to invoke.
Use:
Distinguishing member variables from local variables
this. Variable name member variable
This. Method name (..) member method
This (..) Structure
Usage scenarios:
With parametric construction
Get/set
How do I use the This keyword in Java? when can I use it?