Junior
Millised meetodid on Java Object klassil?
sobes.tech AI
Vastus AI-lt
clone(): creates and returns a copy of the object.equals(Object obj): compares the current object with another object for equality. Defaults to reference comparison.finalize(): called by the garbage collector before the object is destroyed. Obsolete, not recommended for use.getClass(): returns aClassobject representing the class of the object.hashCode(): returns the hash code of the object. Used in hash tables.notify(): resumes execution of a thread waiting on the object's monitor.notifyAll(): resumes execution of all threads waiting on the object's monitor.toString(): returns a string representation of the object. Defaults to class name and hash code.wait(): causes the current thread to wait untilnotify()ornotifyAll()is called.wait(long timeoutInMillis): causes the current thread to wait for the specified time or untilnotify()ornotifyAll()is called.wait(long timeoutInMillis, int nanos): causes the current thread to wait for the specified time with higher precision.