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
Define reflection.
When to use runnable interface vs thread class in java?
What does 3 dots mean in java?
What is difference between adapter class and listener?
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
What is java instanceof operator?
Which collection is ordered in java?
How is it possible for two string objects with identical values not to be equal under the == operator?
Explain the different forms of polymorphism?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
What are different types of expressions?
How do you create a reference in java?
What is java string pool?
What is the difference between length and size in java?
What is the difference between the paint() and repaint() methods in java programming?