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
What do you mean by pointer value and address?
What is the difference between scrollbar and scrollpane?
Can an interface extend another interface?
Can I use % with real numbers?
Explain the key functions of data binding?
What is a finally block? Is there a case when finally will not execute?
What does this () mean in java?
What is meant by vector class, dictionary class, hash table class, and property class?
What does void * mean?
What is the difference between preemptive scheduling and time slicing?
Explain the difference between intermediate and terminal operations in java8?
What are different types of encoding?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
How do you pass by reference?
Explain differences between checked and unchecked exceptions in java?