Home » JAVA Programming » Multithreading » Question
  1. Which of the following is a correct constructor for thread?
    1. Thread(int priority)
    2. Thread(Runnable a, int priority)
    3. Thread(Runnable a, ThreadGroup t)
    4. Thread(Runnable a, String str)
    5. None of these
Correct Option: D

Thread(Runnable a, String str) is a valid constructor for thread. Thread() is also a valid constructor.



Your comments will be displayed only after manual approval.