-1

I saw multiple use of the keyword this in advanced java programs and in android java files. Can anybody please explain to me the use of this? So I can understand the programming better.

piet.t
  • 11,718
  • 21
  • 43
  • 52

1 Answers1

0

As said by Oracle's Java documentation :

Within an instance method or a constructor, this is a reference to the current object — the object whose method or constructor is being called. You can refer to any member of the current object from within an instance method or a constructor by using this.

I would check out the documentation as the this keyword is used often in programming.

AxelH
  • 14,325
  • 2
  • 25
  • 55
  • I took the liberty to edit the style of your answer, it's better to use the blokquote when you are quoting a documentation. – AxelH May 05 '17 at 05:42