public boolean equals(Object ob) To override this method, it is usually necessary to override another method called hashCode. This is to fulfill the contract for the hashCode method as it says that objects which are equal must have equal hash codes.
public boolean equals(Object ob) To override this method, it is usually necessary to override another method called hashCode. This is to fulfill the contract for the hashCode method as it says that objects which are equal must have equal hash codes.