Multiple Choice
Which argument(s) present(s) the best case(s) for extending the Thread class rather than using the Runnable interface in conjunction with a thread pool?
i.Thread sub-classes will all execute independently
II.Runnable objects will waste more system resources
III.Thread sub-classes can execute faster on a single CPU than Runnable objects
A) Only I
B) Only II
C) Only III
D) II and III
Correct Answer:

Verified
Correct Answer:
Verified
Q45: Insert the statement that would start the
Q46: Assume two threads share a BankAccount object
Q47: Consider an old fashioned telephone booth that
Q48: What should be done to get the
Q49: Class MyClass has two ReentrantLock objects, myLock1
Q51: In which method are the tasks that
Q52: Which of the following definitely indicates that
Q53: The term "starvation" means a situation where
Q54: _ allow a thread to temporarily release
Q55: To start a thread, you should first