Question: What does the following statement do? Thread.sleep(10000); O Causes the current thread to exit Causes the current thread to pause for 10,000 seconds Causes

What does the following statement do? Thread.sleep(10000); O Causes the current thread to exit Causes the current thread to pause for 10,000 seconds Causes the current thread to pause for 10 seconds O Causes the current thread to pause for 1 second
Step by Step Solution
There are 3 Steps involved in it
Answer correct option is c Threadsleep method is used to pause the executio... View full answer
Get step-by-step solutions from verified subject matter experts
