Java Reflection Example - accessing private field
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 18956
Total Votes: 174 votes
Category: JAVA/Core JAVA
Submitted on: 2012-09-22 08:24:40
Submitted By: Javin Paul
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...