DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Invoking and handling privates and all other methods of an object with and without the use of Reflection in Java
Roberto Gentili for Burningwave

Posted on • Updated on

Invoking and handling privates and all other methods of an object with and without the use of Reflection in Java

For methods handling we are going to use Methods component; Methods component uses to cache all methods and all method handles for faster access. In order to accomplish the task, we initially need to add the following dependency to our pom.xml:

Let’s take a look at the code now:

We learned how to handle methods and the complete source is available here.

Top comments (0)

🌚 Life is too short to browse without dark mode