what is the difference between equals method and ==
Answer Posted / sriragv
equal method also indirectly use == method i.e hashcode
(),there will be no difference b/w equals and == unless
until u override the equal method
Let me know if iam wrong
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Is the milky way in a void?
What is super constructor?
Describe the syntax of multiple inheritance? When do we use such an inheritance?
Which is faster call by value or call by reference?
What is difference between static and abstract class?
How to create a thread in java?
Which are the two subclasses under exception class?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
What are the advantages of java inner classes?
What is file in java?
Why isn’t there operator overloading?
What is the method in java?
What is data type example?
State the merge-sort principle and its time complexity.
How many bytes is a string in java?