Java.lang.object class methods

List out the five common methods in java.lang.object class?

Questions by sandyl2   answers by sandyl2

Showing Answers 1 - 17 of 17 Answers

Hari

  • Jul 14th, 2011
 

toString();
wait()
notify()
notifyAll()
hashcode()

Jitendra

  • Jul 14th, 2011
 

1)hashcode()
2)toString()
3)equals()
4)Finalize()
5)wait()
6)notify()
7)notifyall()

  Was this answer useful?  Yes

Prabha

  • Aug 10th, 2011
 

clone() - Creates and returns a copy of this object.

boolean equals(Object obj) - Indicates whether some other object is "equal to" this one.

protected void finalize() - Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

Class getClass() - Returns the runtime class of an object.

int hashCode() - Returns a hash code value for the object.

  Was this answer useful?  Yes

Aishvarya

  • Aug 14th, 2011
 

There are 11 methods

1)equals()
2)Hashcode()
3)getclass()
4)toString()
5)finalize()
6)notify()
7)notifyAll()
8)wait()
9)wait(time interval)
10)wait(timeinterval,nanoseconds)
11)clone()

Prabhat807

  • Aug 20th, 2011
 

public native int hashCode()
public string toString()
public final void wait()
public final native void notify()
public final native void notifyAll()
public boolean equals(object)
protected void finalize()

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions