How to call method using Reflection in Java

Tutorials Shared by the Internet Community

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

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
http://javarevisited.blogspot.com/2012/04/how-to-invoke-method-by-name-in-java.html
  • Total Hits: 16135

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 152 votes

  • Category: JAVA/JAVA Misc

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

  • Submitted By: Javin Paul

  • Set as Favorite

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

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 36.84%  56
 Two starsTwo star  Vote LeftVote MiddleVote Right 11.18%  17
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 11.18%  17
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 10.53%  16
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 30.26%  46

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.






Advertisements