← BYTES
Java·Starter·Ref: 9.1.6

What does the `this` keyword refer to inside an instance method?

Have a question about this video? Mention reference 9.1.6 when you contact us.

a.The class itself
b.The parent class
c.The current instance the method was called on
d.A static field
`this` is an implicit reference to the specific object instance a method is currently executing on, used to disambiguate fields from parameters of the same name or to pass the current object elsewhere.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES916#Java