Java Reflection Example - accessing private field

Tutorials Shared by the Internet Community

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

Java Reflection Example - accessing private field

One of the most powerful feature of Reflection is able to access private members. Since private is highest form of encapsulation in Java and Reflecti
http://javarevisited.blogspot.com/2012/05/how-to-access-private-field-and-method.html
  • Total Hits: 20644

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 175 votes

  • Category: JAVA/Core JAVA

  • Submitted on: 2012-09-22 08:24:40

  • Submitted By: Javin Paul

  • Set as Favorite

Description:

One of the most powerful feature of Reflection is able to access private members. Since private is highest form of encapsulation in Java and Reflection is the only resort to access it outside the class on which they declared.    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 32.57%  57
 Two starsTwo star  Vote LeftVote MiddleVote Right 9.14%  16
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 9.71%  17
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 9.71%  17
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 38.86%  68

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