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
How will you get the platform dependent values like line separator, path separator, etc., ?
What is the abstraction?
Where is java located?
Can I extend singleton class in java?
What is difference between classpath and path variables in java?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
Can we sort set in java?
Is math class static in java?
What is difference between static and final?
What is the meaning of flag day?
What are anonymous inner classes?
Why are variables important in research?
Why are the objects immutable in java?
Why destructor is not used in java?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?