what is use of this keyword in Java

Tutorials Shared by the Internet Community

Advertisements


Synopsis

this is very special keyword which can also used to synchronized block in that case that block will be locked on current instance of Class and differe

Statistics

  • Total Hits - 27246

  • Total Votes - 203 votes

  • Vote Up - 133 votes

  • Vote Down - 70 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2012-01-14 11:47:15

Description

this is very special keyword which can also used to synchronized block in that case that block will be locked on current instance of Class and different object can access that method simultaneously. this can also be used to call overloaded constructor. overall a useful introduction of this. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements