Computer Science, asked by devsharma98, 9 months ago

What is differenve between equals() and "=="?​

Answers

Answered by Anonymous
3

Answer:

In general both equals() and “==” operator in Java are used to compare objects to check equality but here are some of the differences between the two: ... In simple words, == checks if both objects point to the same memory location whereas .equals() evaluates to the comparison of values in the objects.

Answered by Anonymous
4

equal means final  decision of l.h.s=r.h.s

and

== means to check in some procedure that L.H.S=R.S.H OR L.H.s≠r.h.s

Similar questions