what is the difference between equals method and ==
Answer Posted / devarathnam c,kotagudibanda(po
Hi...
"equals()" method always compares the content of an
object,but "==" operator compares the memory locations
(references).
eg: String s1="KOTAGUDIBANDA";
Where "s1" is a reference and "KOTAGUDIBANDA"is a content.
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
What is difference between calling start() and run() method of thread?
What is integer size in java?
Which is better 64 bit or 32 bit?
How do you check if a string contains only numeric digits?
Can we override protected method in java?
What is the purpose of skeleton and stub?
What is the default size of load factor in hashing based collection?
What is data type example?
whatis Home interface and Remoteinterface? with example?
What is the function of java?
What is a 16 bit word?
How to find the largest value from the given array.
When object is created and destroyed?
What are the string methods in java?
Explain notify() method of object class ?