Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is an object class?Explain its methods?

Answer Posted / srinu

Object class:-
Class Object is the root of the class hierarchy. Every class
has Object as a super class. All objects, including arrays,
implement the methods of this class.

1)protected Object clone()
Creates and returns a copy of this object.
2) boolean equals(Object obj)
Indicates whether some other object is "equal to"
this one.
3)protected void finalize()
Called by the garbage collector on an object when
garbage collection determines that there are no more
references to the object.
4)Class<? extends Object> getClass()
Returns the runtime class of an object.
5) int hashCode()
Returns a hash code value for the object.
6)void notify()
Wakes up a single thread that is waiting on this
object's monitor.
7) void notifyAll()
Wakes up all threads that are waiting on this
object's monitor.
8) String toString()
Returns a string representation of the object.
9)void wait()
Causes current thread to wait until another thread
invokes the notify() method or the notifyAll() method for
this object.
10)void wait(long timeout)
Causes current thread to wait until either another
thread invokes the notify() method or the notifyAll() method
for this object, or a specified amount of time has elapsed.
11) void wait(long timeout, int nanos)
Causes current thread to wait until another thread
invokes the notify() method or the notifyAll() method for
this object, or some other thread interrupts the current
thread, or a certain amount of real time has elapsed.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?

1080


Can a variable be local and static at the same time?

951


Explain a few methods of overloading best practices in java?

927


What is the applet security manager, and what does it provide?

959


Does java allow default arguments?

957


What is Session reduplication and how its done?

1992


Can size_t be negative?

1087


What does it mean that a method or field is “static”?

930


What are the Main functions of Java?

1059


How arrays are stored in memory in java?

944


How to display all the prime numbers between 1 and n (n is the number, get the input from user)

936


How many unicode characters are there?

990


Does every java program need a main?

948


How do you implement tree mirroring in java?

1024


Explain the hierarchy of java exception classes?

1028