Ask questions via twitter! Message any question to @answers on twitter. We'll publish the question and send you a reply each time there's a new answer.
Next Question

Answered Question

 
 M¢25  Funded By Mahalo ? |  November 10, 2009 09:20 AM

What are the Methods of java.lang.Object?

Interesting Question?  Yes (0)   No (0)   
RSS
 
 

Best Answer  Decided by Votes

 
November 10, 2009 11:55 AM
java.lang.Object provides a number of methods that are common to all objects. toString() is the most common such method. Since the default toString()method only produces the name of the class, you should override it in all classes you define.
• 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
Source(s):
http://www.examville.com



Helpful Answer?  (0)   (0)    Tip dael007 for this answer
Permalink | Report
Voted as best: cjd, twinpairs
   Reply  
 
 

Other Answers (1)

Sort By
 
November 13, 2009 03:46 AM
You may be interested in Java's official class reference, which explains each of the methods of java.lang.Object in lots of detail: http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html
Source(s):
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html

Permalink | Report
Voted as best: kareul
   Reply  
 
 

Answer this Question

How tips and payments work

This question has already been resolved. You may add an answer to it but you will not be eligible to win best answer or any associated tips.

Voted "No best answer": kaliekat, psionandy,


Ask a Question


140 characters left
Top of Page
Buy Mahalo Dollars with Credit Card or PayPal

Top Members

This Week All Time
  • buddawiggi
    buddawiggi
    2nd Degree Black Belt
    26935 Points
    M$783.09 Earned
  • kty2777
    kty2777
    Purple Belt with a Brown Tip
    5400 Points
    M$199.92 Earned
  • opher
    opher
    Purple Belt
    4132 Points
    M$185.92 Earned
   See All
 

Most Popular Tags

mahalo(1588)
iphone(462)
music(459)
google(353)
food(314)
online(293)
beer(278)
money(262)
movies(254)
apple(250)
aotd(235)
health(217)
video(205)
dog(204)
free(201)
   See All
 

Categories

Welcome New Members


 
 
Mahalo Dollars are the currency of Mahalo Answers.

Each Mahalo Dollar costs $1.

Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More

 
 

Please log in to use this function.