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
Why java strings are immutable in nature?
When should I use singleton pattern?
How does queue work in java?
What is the maximum length of a url?
Program to Find the second largest element in an array.
How do you achieve polymorphism in java?
How to access arraylist elements in java?
Explain the importance of finally block in java?
What should I import for arraylist in java?
What is difference between static and final?
Is there any sort function in java?
What is supplier in java?
What are the two types of java?
Explain the meaning of java applet.
What is dynamic array in java?