本帖最后由 ReNeXt 于 2015-4-10 21:24 编辑
下面这段代码有什么问题呢?PS:同学问我,没看出来
package com.journaldev.exceptions;
import java.io.FileNotFoundException;
import java.io.IOException;
public class TestException {
public static void main(String[] args) {
try {
testExceptions();
} catch (FileNotFoundException | IOException e) {
e.printStackTrace();
}
}
public static void testExceptions() throws IOException,
FileNotFoundException {
}
}
|
|