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?

Answers were Sorted based on User's Feedback



what is an object class?Explain its methods?..

Answer / 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

what is an object class?Explain its methods?..

Answer / anitha

In Java,Object Class is a superclass for every class.the
above listed methods r there in object class.

Is This Answer Correct ?    7 Yes 1 No

what is an object class?Explain its methods?..

Answer / manikandan [ gtec,vellore ].

we not need to extend a Object class,implicitly it ll extend
at run time

Is This Answer Correct ?    4 Yes 2 No

what is an object class?Explain its methods?..

Answer / vcs

Object is a class that s every class.

Is This Answer Correct ?    3 Yes 2 No

what is an object class?Explain its methods?..

Answer / raju

THE OBJECT CLASS METHOD ARE

CLONE();
HASHCODE();
NOTIFY();
NOTYFYALL();
WAIT();...ETC..

THESE METHODS ARE VERY IMPOTENT FOR ALL JAVA CLASS.... IN
REAL TIME COLLECTION FRAME WORK HASHSET/HASHMAP CLASS.........

Is This Answer Correct ?    0 Yes 1 No

what is an object class?Explain its methods?..

Answer / ravikiran

Object class is the super most class inside the hierarchy of
classes.

1).wait()
2).notify()
3).notifyAll()
4).instanceOf()

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Core Java Interview Questions

What is the difference between call by reference and call by pointer?

0 Answers  


Inorder to specify a container?s layout, which method is used?

1 Answers  


What is flag in python?

0 Answers  


What are the basic control structures?

0 Answers  


How do you print array in java?

0 Answers  


What is the meaning of I ++ in java?

0 Answers  


What is protected and friendly?

1 Answers  


Hai all I want to print given array in reverse order Ex: int a[]={1,2,3,4,5};display this array in reverse order.

4 Answers  


wat is class level lock and object level lock

3 Answers   HCL, Persistent,


What is method in research paper?

0 Answers  


What is I/O Filter?

2 Answers   TCS, WAX,


What is string in java is it a data type?

0 Answers  


Categories