Recommended: Sing it, brah! 5 fabulous songs for developers
JW's Top 5
The getDeclaredFields() method in the package called java.lang.Class returns all the declared variables inside a class including private variables. But as per the rule of Oops concept a private variable should not get accessible at the outside of the class.
can any one give a clarification about this.?