为什么不能通过以下方式抛出 InterruptedException:
try {
System.in.wait(5) //Just an example
} catch (InterruptedException exception) {
exception.printStackTrace();
//On this next line I am confused as to why it will not let me throw the exception
throw exception;
}
我去了http://java24hours.com,但它没有告诉我为什么我不能抛出一个 InterruptedException。
如果有人知道为什么,请告诉我!我很绝望!:S