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