Object类
一、Java中所有类都继承了什么类?
Object
二、Object 里面都有什么方法
1、
1 private static native void registerNatives();
2、
1 public final native Class<?> getClass();
3、
1 public native int hashCode();
4、
public boolean equals(Object obj) { return (this == obj); }
5、
1 protected native Object clone() throws CloneNotSupportedException;
6、
1 public String toString() { 2 return getClass().getName() + "@" + Integer.toHexString(hashCode()); 3 }
7、
public final native void notify();
8、
1 public final native void notifyAll();
9、
1 public final native void wait(long timeout) throws InterruptedException;
10、
1 protected void finalize() throws Throwable { }
谢谢!