Vidyalelo
Java Programming · Q29

Threads

Programming · Java Programming · question 29

Q29

What is the purpose of the getState() method in Java threads?

A.
It suspends a thread
B.
It starts a new thread
C.
It retrieves the current state of a thread
Answer
D.
It sets the state of a thread

Answer: Option C

Solution

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