[code]public class TEST {
public static void main(String[] args)
{
TestConstructor tc = new TestConstructor();
System.out.println("helloworld");
}
}
class TestConstructor
{
public TestConstructor()
{
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
System.out.println("异常");
e.printStackTrace();
}
}
}[/code]没有捕获到异常 |