Node x = new Node(5, null); Node y = x; System.out.println(System.identityHashCode(x)); System.out.println(System.identityHashCode(y)); Integer a = 4; Integer b = a; System.out.println(System.identityHashCode(a)); System.out.println(System.identityHashCode(b));
2104457164
2104457164
1521118594
1521118594