你没有抛出异常,虚拟机也没有产生异常,怎么会有异常呢,再说,你的语法都有错误
{
throw new Exception("My thrown Exception");
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
{
throw new Exception("My thrown Exception");
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货