Answer Posted / ravikiran
yield() method will suspend all the same priority thread
which is running and gives chance to next thread to run
which is of the same priority
sleep() method will make the thread to sleep for a
particular period of time which is specified in the
argument list
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Discuss different types of errors that generally occur while programming.
What is the vector class in java programming?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What is the applet security manager, and what does it provide?
Can a final variable be initialized in constructor?
what are synchronized methods and synchronized statements? : Java thread
what is the volatile modifier for? : Java thread
What do you mean by scope of variable?
What are keywords in java?
Why super is first line in java?
How variables are stored in memory?
What are the fileinputstream and fileoutputstream?
What is covariant return type?
What is scope & storage allocation of global and extern variables? Explain with an example
Can you create an object of an abstract class?