what is the difference between equals method and ==
Answer Posted / anoop
Normally == using to compare value type. If 2 object is
refering same memmory, it will return true otherwise false
Comparing object , you have to use equals, bz it will
compare all the values in it.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How many ways can we create singleton class?
What is difference between variable declaration and definition?
Why is core java important?
State some advantages of java?
What are different access specifiers in java? Explain
Does sprintf add a null terminator?
What is quick sort in java?
Which class represents the socket that both the client and server use to communicate with each other?
What java is used for?
How would you use Bubble Sort to sort the number of elements?
Why deletion in linkedlist is fast than arraylist?
Compare java and python.
What is integers and example?
What are multiple inheritances? Is it supported by java?
What is difference between final and finally in java?