Class Object
java.lang.Object
public class Object
Since: JDK1.0
Class Object is the root of the class hierarchy. Every class has Object as a superclass. All objects, including arrays, implement the methods of this class.
Class Objects
java.lang.Object
java.util.Objects
public final class Objects
extends Object
Since: JDK1.7
This class consists of static utility methods for operating on objects. These utilities include null-safe or null-tolerant methods for computing the hash code of an object, returning a string for an object, and comparing two objects.
版权声明:本文为u012522829原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。