Multiple choice technology programming languages

Which of these are valid contructors of a Thread object.

  1. public Thread(Object obj)

  2. public Thread(String name)

  3. public Thread(Runnable trgt)

  4. public Thread(ThreadGroup grp, Runnable trgt, String name)

  5. public Thread(ThreadGroup grp, Object ob)

Reveal answer Fill a bubble to check yourself
B,C,D Correct answer
Explanation

Thread constructors accept either a Runnable object (for the task to execute), a ThreadGroup, a name string, or combinations thereof. Option A is invalid because Thread doesn't accept a plain Object parameter. Option E is invalid because Object doesn't implement Runnable. Options B (String name), C (Runnable target), and D (ThreadGroup + Runnable + name) match valid Thread constructor signatures in Java.