public static void main(String[] args) throws IOException, FileNotFoundException {} 是不会有错滴。O是大写。E也是大写。
To throw Exception is a good way of programming... Because Excpetion is the root of all exceptions, while throwing Exception you need to catch and handle it. So it makes you code more stable.
JF..
把所有的Exception的祖宗抛出了.就是跟说:要抛出异常"张三,李四".
你说:我要抛出异常"人".一个道理
是不会有错滴。O是大写。E也是大写。
Because Excpetion is the root of all exceptions, while throwing Exception you need to catch and handle it. So it makes you code more stable.