object instanceof Type
is true if the object is a Type or a subclass of Type
object.getClass().equals(Type.class)
is true only if the object is a Type
object instanceof Type
is true if the object is a Type or a subclass of Type
object.getClass().equals(Type.class)
is true only if the object is a Type