what is use of this keyword in Java

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

what is use of this keyword in Java

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
http://javarevisited.blogspot.com/2012/01/this-keyword-java-example-tutorial.html
  • Total Hits: 14779

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 161 votes

  • Category: JAVA/Core JAVA

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

  • Submitted By: Javin Paul

  • Set as Favorite

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.    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 38.51%  62
 Two starsTwo star  Vote LeftVote MiddleVote Right 8.7%  14
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 10.56%  17
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 11.8%  19
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 30.43%  49

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.





Advertisements
Advertisements