Which of these methods belong to Thread & Object class?
join, yield, sleep, wait, notify

Answers were Sorted based on User's Feedback



Which of these methods belong to Thread & Object class? join, yield, sleep, wait, notify..

Answer / vikki

methods inherited from java.lang.Object
*clone
*equals
*finalize
*getClass
*hashCode
*notify
*notifyAll
*wait

and this three methods join, yield, sleep belongs to Threads
class

Is This Answer Correct ?    22 Yes 0 No

Which of these methods belong to Thread & Object class? join, yield, sleep, wait, notify..

Answer / sudeep

wait belongs to thread... in c#!!!

Is This Answer Correct ?    2 Yes 0 No

Which of these methods belong to Thread & Object class? join, yield, sleep, wait, notify..

Answer / paletipatisrinu

wait()and notify() methods are Thread and object class methods

Is This Answer Correct ?    8 Yes 13 No

Post New Answer

More Core Java Interview Questions

What is the middleware?

2 Answers  


What is an object in java and how is it created?

0 Answers  


What are the major drawbacks of external iteration?

0 Answers  


Explain about strings in java?

0 Answers  


Is it possible for yielded thread to get chance for its execution again ?

0 Answers  






Explain the difference between collection api and stream api in java8?

0 Answers  


What is the difference between static class and normal class?

0 Answers  


What is the difference between super class & sub class?

0 Answers  


What is difference between an object and a class?

0 Answers   Amdocs,


Matrix multiplication only using OOP concepts .

0 Answers  


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

0 Answers  


Can an interface implement another interface?

0 Answers  


Categories