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 difference between Action messages and Action errors?

3 Answers   Bio Imagene, TCS,


Is linkedlist thread safe in java?

0 Answers  


How many bytes are there?

0 Answers  


What is a two-pass assembler?

0 Answers   Syntel, Visa,


Can we have multiple catch block for a try block?

0 Answers  


Is upper case in java?

0 Answers  


Can we force garbage collector to run ?

0 Answers   B-Ways TecnoSoft,


Is array size fixed in java?

0 Answers  


Why is whitespace important?

0 Answers  


What is jar?

0 Answers  


What is anti pattern in cyber security?

0 Answers  


How to do encapsulation in java?

0 Answers  


Categories