can i judge the two runtime instance are the same handle?
can I judge the two instance is the same handle, just like in C++ to get their address by "&" for compare?if yes, how?thanks in advanceFrederick
Integer a = new Integer(7);
Integer b = new Integer(7);
boolean sameValue = (a.equals(b)); // true
boolean sameInstance = (a == b); // false
Just in case jsalonen's answer was a bit terse.