220 views
0 votes
0 votes

Which of the following methods need to be overridden if equals method is overriden? 

(A) hashCode method

(B) toString method

(C) compareTo method

(D) equal method

correct answer is (A) 

but why ? i dint understand this :(((((

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
LavTheRawkstar asked Jun 29, 2016
954 views
What is the output of the following code segment ?Boolean b= false ;if (b = true)System.out.println("true");elseSystem.out.println("false");(A) true(B) false(C) compiler ...
0 votes
0 votes
1 answer
3
LavTheRawkstar asked Jun 28, 2016
939 views
What is the difference between the following shift operators : A) >> operatorB) > operatorC) << operator
2 votes
2 votes
1 answer
4
LavTheRawkstar asked Jun 28, 2016
451 views
Why Java does not support multiple inheritance?i want answer in simple words. i have searched for this answer in every textbook.Everytext just says that it doesnot suppor...