In this section we describe how to retrieve method name
by using the
getMethods() method. Here is an example that
demonstrates the use of the getMethods() method in more detail.
Define a class named "Fmethod" and then create an object of this class and get the reference of java.util.Integer.class into it. Now retrieve the method name by using the getMethods() method.
Here is the code of the Example :
Here is the output of the Example :
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Ask Questions? Discuss: Getting the method name used in the Application
Post your Comment