Multiple Choice
Suppose run1 and run2 are objects of the class MyRunnable, which implements the Runnable interface. What is the result of the following calls?
Run1.run() ;
Run2.run() ;
A) run1 and run2 execute as independent threads.
B) Syntax error
C) Only run1 executes as an independent thread.
D) run1 and run2 run sequentially, not as independent threads.
Correct Answer:

Verified
Correct Answer:
Verified
Q12: Class MyClass has a single ReentrantLock object,
Q14: Examine the SharedData class shown below. Suppose
Q25: Suppose thread one is downloading a large
Q26: The sleep method is terminated with a(n)
Q58: The _ interface is designed to encapsulate
Q69: The _ method is called by a
Q70: If you do not use the Runnable
Q70: The _ method does not actually cause
Q73: Consider an old fashioned telephone booth that
Q74: A GUI should be responsive to the