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 the use of object and class classes?
What is string args [] in java?
Realized?
What do you meant by active and passive objects?
How many bytes is a string?
Is the empty set a singleton?
Mention the default values of all the elements of an array defined as an instance variable.
Can static methods access instance variables in java?
Why is it important to initialize a variable?
can I implement my own start() method? : Java thread
Can we execute a program without main?
Can we have any other return type than void for main method?
What is member in java?
Can a static class have a constructor?
Which is easier .net or java?