摘要: 1.今天学习了用throws抛出异常。 示例: public class ThrowsDemo{ public static void main(String[] args)throws Exception{ int x=5; int y=x/0; System.out.println(y); } 阅读全文
posted @ 2020-08-17 18:47 张笑天 阅读(69) 评论(0) 推荐(0) 编辑