public static boolean isSubclass(String superclass,String otherclass){
  try {
    return isSubclass(Class.forName(superclass),Class.forName(otherclass));
  }
 catch (  Exception e) {
    return false;
  }
}

public static boolean isSubclass ( String superclass , String otherclass ) { try { return isSubclass ( Class . forName ( superclass ) , Class . forName ( otherclass ) ) ; } catch ( Exception e ) { return false ; } }
checks whether the " otherclass " is a subclass of the given " superclass " .
