Java Reflection Example - accessing private field

Tutorials Shared by the Internet Community

Advertisements


Synopsis

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

Statistics

  • Total Hits - 27420

  • Total Votes - 141 votes

  • Vote Up - 82 votes

  • Vote Down - 59 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

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

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


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

Advertisements