fork download
  1. class Ideone {
  2. public static void main(String[] args) {
  3. int v = 60_000;
  4. final Integer tmp1 = v;
  5. final Integer tmp2 = v;
  6. System.out.println(System.identityHashCode(tmp1));
  7. System.out.println(System.identityHashCode(tmp2));
  8. System.out.println(tmp1 == tmp2);
  9. }
  10. }
  11.  
Success #stdin #stdout 0.08s 49028KB
stdin
Standard input is empty
stdout
804564176
1421795058
false