编程语言
首页 > 编程语言> > Java 地址

Java 地址

作者:互联网

  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

标签:Node,Java,System,地址,Integer,println,identityHashCode,out
来源: https://www.cnblogs.com/tingtin/p/15737936.html