try
{
// throws IOException
}
catch(Exception e)
{
}
catch(IOException e)
{
}
when try
block throws IOException
, it will call the first catch
block, not the second one. Can anyone explain this? Why does it call the first catch
block?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…