Java tutorial
import java.lang.reflect.Method; public class Main { public static void main(String[] args) throws Exception { Class cls = Class.forName("java.awt.Label"); System.out.println("Methods ="); Method m[] = cls.getMethods(); for (int i = 0; i < m.length; i++) { System.out.println(m[i]); } } }