这两段代码有什么不同?
代码段1:
代码段1:
Snippet 2:
Object o = new Object();
int i = Objects.hashCode(o);
代码段2:
Object o = new Object();
int i = o.hashCode();