Test Your Understanding Threads PDF
Test Your Understanding Threads PDF
Understanding
Started on
Friday, 20 March 2020, 12:19 PM
State
Finished
Completed on
Friday, 20 March 2020, 12:20 PM
Time taken
40 secs
Marks
3.00/3.00
Grade
100.00 out of 100.00
Feedback Congratulations!! You have passed by securing more than 80%
Question 1
Correct
}
System.out.println("String in run");
}
class Test {
public static void main(String[] args) {
t1.start();
}}
Select one:
b. String in run
d. No Output
e. Compile Error
Question 2
Correct
a. Synchronized blocks
b. Synchronized interfaces
c. Synchronized classes
d. Synchronized methods
Correct
}
}
class Test {
public static void main(String[] args) {
t1.start();
}
The below code will compile & provide the output: Important job
running in MyThread
Select one:
True
False