From: Alan and Carmel Brain <[log in to unmask]>
> Similarly for a==b, where in java you're saying "are a and b just aliases
> for the same object"
> rather than comparing their internal values. Which is done with
a.equals(b),
> assuming
> that's defined.
>
One of the most irritating things in Java is how it insists on reference
semantics.
Note that here, == means reference equality, while equals means value
equality.
However, the default (inherited) for equals is reference equality!
Really confusing...
---------------------------------------------------------
J-P. Rosen ([log in to unmask])
Visit Adalog's web site at http://pro.wanadoo.fr/adalog