why the equals method can be override?when we override the
equals method?
Answer Posted / subhareddy
equals method available in object class is for address
comparison not for content comparison.so for content
comparison we have to override equals method in our class.
wrapper classes and string class has overridden equals
method for content comparison.
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
What is a cup of java?
What do you mean by scope of variable?
What all methods are used to prevent thread execution ?
How do you generate random numbers in java?
Can a class have multiple constructors?
How do you start a new line in java?
What is anagram number?
List primitive java types?
What is a data structure java?
What is module with example?
What are the four corner stones of oop?
I don’t want my class to be inherited by any other class. What should I do?
Is call by reference possible in java?
When is update method called?
Mention a package that is used for linked list class in java.