How to call method using Reflection in Java

Tutorials Shared by the Internet Community

Advertisements


How to call method using Reflection in Java

Java example of calling any method using Reflection API. java.lang.reflect package has a class called Method which denotes java methods and have over

Statistics

  • Total Hits - 31895

  • Total Votes - 104 votes

  • Vote Up - 47 votes

  • Vote Down - 57 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/JAVA Misc

  • Submitted By - Javin Paul

  • Submitted on - 2012-08-25 08:26:26

Description

Java example of calling any method using Reflection API. java.lang.reflect package has a class called Method which denotes java methods and have overloaded method invoke() which can be used to call actual method.    More detail...


Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements