public static boolean isSerializable(String classname){
  boolean result;
  try {
    result=isSerializable(Class.forName(classname));
  }
 catch (  Exception e) {
    result=false;
  }
  return result;
}

public static boolean isSerializable ( String classname ) { boolean result ; try { result = isSerializable ( Class . forName ( classname ) ) ; } catch ( Exception e ) { result = false ; } return result ; }
checks whether a class is serializable .
