InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is a correct constructor for thread?(a) Thread(Runnable a, String str)(b) Thread(int priority)(c) Thread(Runnable a, int priority)(d) Thread(Runnable a, ThreadGroup t) |
|
Answer» Right answer is (a) Thread(Runnable a, String str) Explanation: Thread(Runnable a, String str) is a valid constructor for thread. Thread() is also a valid constructor. |
|