Explain the methods of java.lang.object, JAVA Programming

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

Posted Date: 5/16/2013 1:45:24 AM | Location : United States

Related Discussions:- Explain the methods of java.lang.object, Assignment Help, Ask Question on Explain the methods of java.lang.object, Get Answer, Expert's Help, Explain the methods of java.lang.object Discussions

Write discussion on Explain the methods of java.lang.object
Your posts are moderated
Related Questions
What is difference between object state and behavior? Ans) If you change the state of an object, you ask it to perform a behavior. An object kept its states in a field e.g. vari

Task Your task is  to  write  a  Java  program  that  allows  users  to  play  the  game  of  Brickles. (note:  it  is  up  to  you  whether  to  use the  skeleton).  The prog

Write JavaScript code that is executed during form submission to calculate the cost of each book (based on quantity specified) and the overall total cost. The results should be dis

What are three ways in which a thread can enter the waiting state ?

Java output and input is described in terms of an abstract concept named a " stream ", which is a sequence of data. There are 2 types of streams. 1.      Byte streams (8 bit

Project Description: I am planning to prepare a website which caters the services to online internet users. I have already prepared most HTML5 pages by own and wanted to impl

Component classes generally move the task of generating output to the renderer. All JSF components follow it. Render kit is a set of related renderers. javax.faces.render.RenderKit

Prepare a Game in Corona (for Android and IOS) Project Description: We are looking to prepare a game for mobile platform similar to Zombie Smasher for iOS and Android. Eve

have some assignments and i want help with them. thanks