Examveda
Examveda

Which of the following constructor of class Thread is valid one?

A. Thread(Runnable threadOb, int priority)

B. Thread(int priority)

C. Thread(Runnable threadOb, String threadName)

D. Thread(String threadName, int priority)

E. None of these

Answer: Option C


Join The Discussion

Comments ( 1 )

  1. Harsha R
    Harsha R :
    5 years ago

    How?

Related Questions on Threads

What will be the output of the following program code?

A. The program does not compile because this cannot be referenced in a static method.

B. The program compiles fine, but it does not print anything because t does not invoke the run() method

C. The program compiles and runs fine and displays test on the console.

D. None of the above