public static void main(String[] args) { try{ int i=1/0; } catch(Exception e) { System.out.println("在catch里"); } finally { System.out.println("在finally里"); } } // 输出结果: // 在catch里 // 在finally里
62,630
社区成员
307,264
社区内容
加载中
试试用AI创作助手写篇文章吧