Qus:    Difference between a.equals(b) and a==b?
Dec 19, 2020 14:37 DotNet 2 Answers Views: 1056 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 11: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 14:23
Answer:   a==b compares the reference values whereas Equals() compares only contents.

Post Your Answer
Guest User

Not sure what solution is right for you?

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


Let`s Connect