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.
Asked
Active
Viewed 66 times
-1

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

user5355606
- 17
- 4
-
As with your previous question, please use the search facility before posting. – Oliver Charlesworth May 05 '17 at 05:16
-
@OliverCharlesworth ok – user5355606 May 05 '17 at 05:17
1 Answers
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