Question: public class JavaThreadsQuiz { public static void main ( String [ ] args ) { Thread thread = new Thread ( ) ; thread.start (
public class JavaThreadsQuiz
public static void mainString args
Thread thread new Thread;
thread.start ;
thread.start;
Question:
What will be the output of the following
program?
Select one:
a None of the mentioned.
b It prints nothing
c It prints nothing because the package
"java.lang.Thread" should be imported.
d It throws a
"java.lang.IllegalThreadStateException"
e main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
