-
Which of the following is a correct constructor for thread?
-
- Thread(int priority)
- Thread(Runnable a, int priority)
- Thread(Runnable a, ThreadGroup t)
- Thread(Runnable a, String str)
- None of these
Correct Option: D
Thread(Runnable a, String str) is a valid constructor for thread. Thread() is also a valid constructor.