總結
public final native Class<?> getClass() //回傳此 Object 運行時的類
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 //使當前物件的執行緒等待 timeout 時長
public final void wait(long timeout, int nanos) throws InterruptedException //使當前物件的執行緒等待 timeout 時長,或其他執行緒中斷當前執行緒
public final void wait() throws InterruptedException //使當前物件的執行緒等待
protected void finalize() throws Throwable {} //垃圾回收時呼叫該方法
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/195986.html
標籤:其他
上一篇:作業系統導論(2)
