class MyThread extends Thread {
MyThread() {
setPriority(10);
}
publicvoid run() {
try {
Thread.sleep(100);
} catch (InterruptedException e) { }
}
publicstaticvoid main(String args[]) {
MyThread p1 = new MyThread();
MyThread p2 = new MyThread();
MyThread p3 = new MyThread();
p1.start();
p2.start();
p3.start();
}
}
A. The code will not compile, because exceptions cannot be caught in a thread's run() method.
B. Execution will resume in, at most, 100 milliseconds.
C. Execution will resume running in exactly 100 milliseconds.
D. Execution will resume running some time after 100 milliseconds have elapsed.