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
Describe the process as to how substring() methodology mechanisms in java.
Explain runtime exceptions?
What is the difference between final, finally and finalize() in java?
What programs use java?
What classes of exceptions may be caught by a catch clause in java programming?
Why is the singleton pattern considered to be an anti pattern?
What do you understand by weak reference?
What is the use of default method in interface in java? Explain
Can you start a thread twice in Java?
What is variable and its types?
What is difference between length and length() method in java ?
How many threads can I run java?
Can a class have a static inner class?
What do bitwise operators do?
What is the best way to findout the time/memory consuming process?