Object is the ultimate superclass of every class (excepting interfaces).
As such, it needs help from the VM.
| Method from java.lang.VMObject Detail: |
static native Object clone(Cloneable c)
The VM is expected to make a field-for-field shallow copy of the
argument. Thus, the copy has the same runtime type as the argument.
Note, however, that the cloned object must still be finalizable, even
if the original has already had finalize() invoked on it. |
static native Class getClass(Object obj)
Returns the runtime Class of a given Object. |
static native void notify(Object o) throws IllegalMonitorStateException
Wakes up one of the threads that is waiting on this Object's monitor.
Only the owner of a lock on the Object may call this method. The Thread
to wake up is chosen arbitrarily. |
static native void notifyAll(Object o) throws IllegalMonitorStateException
Wakes up all of the threads waiting on this Object's monitor. Only
the owner of the lock on this Object may call this method. |
static native void wait(Object o,
long ms,
int ns) throws IllegalMonitorStateException, InterruptedException
Waits a specified amount of time for notify() or notifyAll() to be
called on this Object. The VM does not have to pay attention to the
ns argument, if it does not have that much granularity. |