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(); } }