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?