On Jul 19, 2007, at 01:10, Andreas L Delmelle wrote:

<snip />

Hmm, made me wonder:

  Number oneInt = new Integer(1);
  Number oneDouble = new Double(1.0);
  boolean check = (oneInt.hashCode() != oneDouble.hashCode());

=> (check == true)

Can this be relied upon?

BTW: the following is perfectly legitimate

Object o = new Object();

Just wondering if anyone can think of a use-case...



Reply via email to