Inevitable, during a Java interview you will be asked about equals() and hashCode() methods which are declared in the java.lang.Object class. equals() method The equals method is declared as

and indicates wether two objects are equals or not. It returns true in case the two objects are equals, andContinue Reading