explain the methods of


Explain The Methods of java.lang.Object?

java.lang.Object gives a number of methods that are general to all objects. toString() is the most general such method. Because the default toString() method only generates the name of the class, you should override it in all classes you describe.

• public Object()
• public final Class getClass()
• public int hashCode()
• public boolean equals(Object obj)
• protected Object clone() throws CloneNotSupportedException
• public String toString()
• public final void notify()
• public final void notifyAll()
• public final void wait(long timeout) throws InterruptedException
• public final void wait(long timeout, int nanoseconds) throws InterruptedException
• public final void wait() throws InterruptedException
• protected void finalize() throws Throwable

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: explain the methods of
Reference No:- TGS0284786

Expected delivery within 24 Hours