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 does system.gc() and runtime.gc() methods do?
Explain public static void main(string args[]) in java.
What is treeset in java collection?
What is array command?
Why do we need wrapper class?
How do listeners work?
List some important features of java 10 release?
How do you decide when to use arraylist and linkedlist?
What is nullpointerexception?
Can a vector contain heterogenous objects?
Does list allow duplicates in java?
What is thread safe java?
Is ruby built on java?
What is are packages?
What are heap memory and stack memory and what are memory tables.