Code example for Method

Methods: getName

0
      } 
  }; 
 
  public static Comparator<Method> MethodNameComparator = new Comparator<Method>() {
      public int compare(Method m1, Method m2) { 
        String mName1 = m1.getName(); 
        String mName2 = m2.getName(); 
        return mName1.compareTo(mName2); 
      } 
  }; 
 
  public static class CustomException2 extends Exception {
    public CustomException2() { super(); } 
  } 
 
  public static class CustomException extends Exception {
    public CustomException() { super(); } 
  } 
 
  public Class loadClass(String className) throws ClassNotFoundException {
    System.out.println("Loading class " + className);