How to call method using Reflection in Java

Tutorials Shared by the Internet Community

Advertisements


Synopsis

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 - 18400

  • 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. ...


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

Advertisements