

MCQOPTIONS
Saved Bookmarks
1. |
Which of the following line of code is suitable to start a thread ?
|
A. | Thread t = new Thread(X); |
B. | Thread t = new Thread(X); t.start(); |
C. | X run = new X(); Thread t = new Thread(run); t.start(); |
D. | Thread t = new Thread(); x.run(); |
Answer» D. Thread t = new Thread(); x.run(); | |