I know that \'this\' is acting as reference in Java. We can use it inside the class members only.
What I am asking is... because it is used in the members of the cl
this will give you a reference to the actual instance. It's very common in constructors, eg:
this
class Dog { String name; public Dog(String name) { this.name = name; } }