Vidyalelo
Java Programming · Q10

Threads

Programming · Java Programming · question 10

Q10

In Java, what is the purpose of the sleep() method in threads?

A.
It terminates all threads in the program
B.
It pauses the execution of the current thread for a specified duration
Answer
C.
It resumes the execution of a thread
D.
None of These

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board