代码1:...
try{
...
}catch(IOException e)
{
System.out.println("end");
}
代码2:...
try{
...
}
catch(IOException e)
{
System.out.println("end");
IOException ex=new IOException("something is wrong!");
throw ex;
}问:代码1算是对异常进行处理了吗?那么代码2呢?
先谢谢各位大虾了