Chiranjeevi Kanthraj wrote:Hi all
By using reflection API we can access the private variable except inherited members.
then how can we protect the private member from the reflection API also.
regards
Chiru
Use Class.getSuperclass() in combination with Class.getDeclaredFields(), and loop until you've reached the end: