Invoking Private Methods in Java using Reflection PRO
Using the Java Reflection API we can indirectly invoke private methods from outside the scope of the class they belong to. The AcceesibleObject class is the base class for Method, Field and Constructor. The AccessibleObject class provides the ability to flag a reflected object and suppress default Java language access control checks. Calling the setAccessible method […]
Accessing Private Members using Java Reflection PRO
Using the Java Reflection API we can access private members from outside the scope of the class they belong to. When the private member is a field we can even change its value and when the private member is a method we can even indirectly invoke it. The AcceesibleObject class is the base class for […]
Teaching
Teaching Empowering Software Developers to Reach Their Full Potential I began my journey as a programming instructor in 1995, teaching C, C++, and Java in public courses. During those early years, I enjoyed the opportunity to refine my ability to make complex technical concepts accessible, practical, and engaging for students from diverse backgrounds. In 1996, […]