你能解释一下java.lang.Thread.interrupt()调用时会发生什么吗?
我有一个Java调用的线程
t.interrupt();
使t(不同的线程)中断.我希望"t"线程然后捕获一个InterruptedException但是Eclipse不会让我InterruptedException说它不会在try体中抛出.我怎样才能得到这个InterruptedException名字?我用t.interrupt()错了吗?