如果在main方法上抛出异常(throws IOException),则程序中就可以不写try语句,意味着将IOException异常抛出,交由系统处理。
基于12个网页-相关网页
throws ioexception
抛出ioexception
以上为机器翻译结果,长、整句建议使用 人工翻译 。
Declare that the enclosing method, compare in this example, also throws IOException.
声明包装方法(本例为compare)也抛出IOException。
youdao
应用推荐
模块上移
模块下移
不移动