Next Question

Mahalo is adding a tip to all questions that don't offer a tip.
M¢25 Funded By Mahalo ? |
November 10, 2009 09:20 AM
RSS
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
Permalink | Report
Source(s):
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html
Tags: development, programming, objects, java, documentation
Helpful Answer?
(0)
(0)
Tip christhomson for this answer
Permalink |
Report
Answered Question

Mahalo is adding a tip to all questions that don't offer a tip.
What are the Methods of java.lang.Object?
Interesting Question?
Yes (0)
No (0)
- In Programming Design & Development |
- |
- Report |
-
Share
RSS
Best Answer Decided by Votes
| November 10, 2009 11:55 AM |
• 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
Permalink | Report
Other Answers (1)
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
Tags: development, programming, objects, java, documentation
Helpful Answer?
(0)
(0)
Tip christhomson for this answer
Voted as best: kareul
Buy Mahalo Dollars with Credit Card or PayPal
Top Members
Most Popular Tags
Categories
- Anonymous
- Arts & Design
- Beauty & Style
- Books & Authors
- Business
- Cars & Transportation
- Consumer Electronics
- Coupons Deals
- Education
- Entertainment
- Environment
- Fitness
- Food & Drink
- From Email
- From Iphone
- From Twitter
- Health
- History
- Hobbies
- Home & Garden
- How Tos
- Humor
- Jobs
- Legal
- Local
- Love & Relationships
- Mahalo Answers Community
- Money
- Music
- News
- NSFW
- Parenting
- Pets
- Science & Mathematics
- Services
- Shopping
- Social Science
- Society & Culture
- Sports
- Technology & Internet
- Travel
- Video Games
Welcome New Members
- pacqiuo, November 26, 2009 07:41 AM
- jle012, November 26, 2009 07:17 AM
- cellphonefocus, November 26, 2009 07:07 AM
- thejordee, November 26, 2009 06:11 AM
- soccormommi, November 26, 2009 05:59 AM
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