what is the difference between equals method and ==
Answer Posted / sandeep arora
== checks the reference value, that the reference are of
same object or not.
equals method check two strings are same or not
| Is This Answer Correct ? | 26 Yes | 7 No |
Post New Answer View All Answers
What is string intern in java?
What is the difference between hashset and treeset in java?
How to optimize the javac output?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
What is the purpose of a default constructor?
What are the two main uses of volatile in Java?
What is data member in java?
How to sort list of list in java?
How do you ensure that n threads can access n resources without deadlock?
What is the difference between jvm and jre? What is an interface?
What is queue in java?
What are the 4 types of research methods?
What is the memory leak in java?
Are constructors methods?
Explain how hashmap works?