Examveda
Examveda

Which of the following are methods of the Thread class?
1) yield()
2) sleep(long msec)
3) go()
4) stop()

A. 1 , 2 and 4

B. 1 and 3

C. 3 only

D. None of the above

Answer: Option A


This Question Belongs to Java Program >> Threads

Join The Discussion

Related Questions on Threads

What is a thread in Java?

A. A lightweight process that runs independently within a program

B. A data structure to store variables

C. A type of loop

D. A synchronization mechanism