Getting the Methods of a Class Object: By obtaining a list of all declared methods
import java.lang.reflect.Method; public class Main { public static void main(String[] argv) throws Exception { Class cls = java.lang.String.class; Method[] methods = cls.getDeclaredMethods(); } }