Qus:    Difference between a.equals(b) and a==b?
Dec 19, 2020 08:37 2 Answers Views: 541 PADMAKEECHU

  == checks if both objects point to the same memory location whereas equals() evaluates to the comparison of values in the objects.

Prev Next
Answers (2)
PARTH Dec 21, 2020 05:04
Answer:   == checks if both objects point to the same memory location whereas equals() evaluates to the comparison of values in the objects.

DIVYA Dec 21, 2020 08:23
Answer:   a==b compares the reference values whereas Equals() compares only contents.

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect