This is a follow-up to my earlier post on Java Reflections. In the earlier post I just showed how to invoke methods of an object dynamically using reflection. Here I am going to talk about accessing attributes of another object using reflection, with a little twist. Just like my earlier post I’ll start this with • Read More »
Tags: access private fields, access private methods, java, Java Programming, Java Reflections, java.lang.Class, java.lang.reflect, java.lang.reflect.Field, private access specifier, private member access, Programming, Reflections, setAccessible