- private static native void registerNatives()
- protected native Object clone() throws CloneNotSupportedException
- public final native Class <?> getClass()
- public boolean equals(Object obj)
- public native int hashCode()
- 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() throws Throwable
打开类Object查看源码:
1 . 查看这个代码之后,首先自己感到的第一个困惑是 java中的native关键字有什么作用?
2. Object中的registerNatives()方法
引用至:https://blog.csdn.net/Saintyyu/article/details/90452826
3 . Clone方法
引用至: https://blog.csdn.net/zl_1079167478/article/details/79357095
4 . hashCode()方法
5 wati, notify () 方法