Source code:: import java.lang.reflect.*; public class Reflection { public static void main(String args[]) { try { System.out.println("enter the method name"); Class c = Class.forName(args[0]); Method[] m = c.getDeclaredMethods(); for(int i=0;i<=m.length;i++) { System.out.println(m[i]); } System.out.println("enter the name of class"); Constructor[] con = c.getDeclaredConstructors(); for(int i=0;i<con.length;i++) { System.out.println(con[i]); } System.out.println("enter the name of class"); Field[] f = c.getDeclaredFields(); for(int i=0;i<f.length;i++) { System.out.println(f[i]); } } catch(Exception e) { System.out.println(e); } } } // you can able to find the methods ,constructors,and fields of your desirable class. //for more program mail me on - er.gauravsrivastava.cse@gmail.com
With me, what you see is what you get. Yes, call me naive, but I love life. I am happy, and for that, I make no apologies. I do like to see the best in people, and when someone is nice to my face, I tend to believe them.
No one wants to die. Even people who want to go to heaven don't want to die to get there. And yet death is the destination we all share. No one has ever escaped it. And that is as it should be, because Death is very likely the single best invention of Life. It is Life's change agent. It clears out the old to make way for the new. Steve Jobs
Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. Steve Jobs