Pregunta de entrevista de Capgemini

Methods listed in object class?

Respuestas de entrevistas

Anónimo

25 ago 2013

clone() - Creates and returns a copy of this object. equals() - Indicates whether some other object is "equal to" this one. finalize() - Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. getClass() - Returns the runtime class of an object. hashCode() - Returns a hash code value for the object. notify() - Wakes up a single thread that is waiting on this object's monitor. notifyAll() - Wakes up all threads that are waiting on this object's monitor. toString() - Returns a string representation of the object. wait() - Causes current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object.

1

Anónimo

25 ago 2013

clone() - Creates and returns a copy of this object. equals() - Indicates whether some other object is "equal to" this one. finalize() - Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. getClass() - Returns the runtime class of an object. hashCode() - Returns a hash code value for the object. notify() - Wakes up a single thread that is waiting on this object's monitor. notifyAll() - Wakes up all threads that are waiting on this object's monitor. toString() - Returns a string representation of the object. wait() - Causes current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object.