The exact signature to override the equals method is as below:

public boolean equals(Object obj){}