posted 24 years ago
Hi Nitin,
First of all your question is not clear enough for me.
1.wait() method is used to make a thread currently executing a synchronized code go into waiting state.
2.synchronized keyword is used to make a method or block synchronized.
3.setPriority method is used to set the priorty of a thread, and that has to be done before calling start() method of that thread
other wise setPriorty() method has no effect. setPriorty method takes a value between 1 and 10.
4.sleep() method makes the thread executing the code go into waiting state for minimum time given as argument to the sleep() method.
So i presume B and D are answers u r looking for.
I hope this helps you.
regards
ashish