Multiple Choice
When a sleeping thread is interrupted, an InterruptedException is generated.Where do you catch that exception?
A) in the start() method.
B) in the sleep() method.
C) in the run() method.
D) in the interrupt() method.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q37: The term "stale data" refers to a
Q38: Calling signalAll without locking the object is
Q39: Suppose thread one is downloading a large
Q40: Calling the wait method in synchronized code
Q41: What happens if we try to start
Q43: In order to unblock a thread after
Q44: When a thread is interrupted, the most
Q45: Insert the statement that would start the
Q46: Assume two threads share a BankAccount object
Q47: Consider an old fashioned telephone booth that