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
Explain methods specific to list interface?
What is the use of pattern in java?
What is the difference between C++ and Java and your preferences?
What is the purpose of using break in each case of switch statement?
When do we use synchronized blocks and advantages of using synchronized blocks?
What are the types of methodology?
When does a class need a virtual destructor?
What is a boolean expression in java?
What is the use of a conditional inclusion statement in Java ?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
What is formatted output in java?
What is the purpose of java?
What are the parts of methodology?
What is the Scope of Static Variable?
What is string and example?