This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Which of the following statements are true about correctly overriden hashCode() and equals() methods?
1) the equals() must return the same value as using the == operator 2) equals() and hashCode() code must return the same value. 3) If two objects are different according to equals() they will return different hashCode() values. 4) If two objects are equal according to equals() they will return the same hashCode value.