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
List types of storage classes in java?
What is java Applet?
What is the purpose of format function?
Is nan false?
What do you mean by flow of struts?
how to run ecllipse with jettyserver for windows environment using batch file
Explain access modifiers in java.
Can we sort list in java?
How listener identify that the event came from a particular object?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
What is the internal implementation of set in java?
What is the difference between int and integer in java?
How do you read a char in java?
What is the difference between checked exception and unchecked exception?
Can we change the value of static variable?