public class Object 类 Object 是类层次结构的根类。每个类都使用Object 作为超类。所有对象(包括数组)都实现这个类的方法。
public native int hashCode() 返回该对象的哈希码值。
public boolean equals(Object obj) 指示其他某个对象是否与此对象“相等”。
protected native Object clone() throws CloneNotSupportedException 创建并返回此对象的一个副本。
public String toString() 返回该对象的字符串表示。
public final native Class<?> getClass() 返回此 Object 的运行时类。
protected void finalize() throws Throwable {} 当垃圾回收器确定不存在对该对象的更多引用时,由对象的垃圾回收器调用此方法。
public final native void notify() 唤醒在此对象监视器上等待的单个线程。
public final native void notifyAll() 唤醒在此对象监视器上等待的所有线程。
public final native void wait(long timeout) throws InterruptedException 在其他线程调用此对象的 notify() 方法或 notifyAll() 方法,或者超过指定的时间量前,导致当前线程等待。
public final void wait(long timeout, int nanos) throws InterruptedException 在其他线程调用此对象的 notify() 方法或 notifyAll()方法,或者其他某个线程中断当前线程,或者已超过某个实际时间量前,导致当前线程等待。
public final void wait() throws InterruptedException 在其他线程调用此对象的 notify() 方法或 notifyAll() 方法前,导致当前线程等待。