Save This Page
Home » openjdk-7 » java » lang » [javadoc | source]
java.lang
final class: VMObject [javadoc | source]
java.lang.Object
   java.lang.VMObject
Object is the ultimate superclass of every class (excepting interfaces). As such, it needs help from the VM.
Method from java.lang.VMObject Summary:
clone,   getClass,   notify,   notifyAll,   wait
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
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.