public static boolean isClassPresent(String fullyQualifiedClassName){
  try {
    Class.forName(fullyQualifiedClassName);
    return true;
  }
 catch (  ClassNotFoundException e) {
    return false;
  }
}

public static boolean isClassPresent ( String fullyQualifiedClassName ) { try { Class . forName ( fullyQualifiedClassName ) ; return true ; } catch ( ClassNotFoundException e ) { return false ; } }
returns true if the class is present in the current class loader .
