public boolean isInstanceOf(Object obj,Class<?> clz){
  if (obj == null || clz == null) {
    if (log.isLoggable(Level.FINEST)) {
      log.finest("isInstanceOf error: obj=" + obj + " clz="+ clz);
    }
    return false;
  }
  return clz.isAssignableFrom(obj.getClass());
}

public boolean isInstanceOf ( Object obj , Class < ? > clz ) { if ( obj == null || clz == null ) { if ( log . isLoggable ( Level . FINEST ) ) { log . finest ( "isInstanceOf error: obj=" + obj + " clz=" + clz ) ; } return false ; } return clz . isAssignableFrom ( obj . getClass ( ) ) ; }
this method determines whether the supplied object is an instance of the supplied class / interface .
