Someware i hears one is deepcomparison and other one is shallow comparison!
what r that words.
Ram's
Tony Morris
Ranch Hand
Joined: Sep 24, 2003
Posts: 1608
posted
0
The former is called the reference equality operator when both operands are a reference type (perhaps implicitly through autoboxing) - it compares the value of a reference to some other reference.
The latter is a method that is regularly used throughout the J2SE API Specification to determine "value equality" between two object instances. For example, in the Java collections API.