try -catch-catch異常的執行順序

你們都知道try-catch是捕獲異常的,我本身也是這麼明白,殊不知道多個catch是怎麼操做。 就決定本身試驗一下 public class Try { public static void main(String[] args) { int[] arr = new int[5]; double b = 0; try{ arr[6] = 8; } catch (Arr
相關文章
相關標籤/搜索