更多 Java 基礎(chǔ)知識(shí)方面的文章,請(qǐng)參見文集《Java 基礎(chǔ)知識(shí)》
public final native Class<?> getClass()
public native int hashCode()
public boolean equals(Object obj)
protected native Object clone() throws CloneNotSupportedException
public String toString()
public final native void notify()
public final native void notifyAll()
public final native void wait(long timeout) throws InterruptedException
public final void wait(long timeout, int nanos) throws InterruptedException
public final void wait() throws InterruptedException
-
protected void finalize()
:類似于析構(gòu)函數(shù),在一個(gè)對(duì)象被真正回收之前,執(zhí)行一些清理工作。