看到一个我在期中考试中做错的问题,这让我想知道:
public double[] readInputFile(String fielane) throws IOException
{
File inputFile = new File(filename);
Scanner in = new Scanner(inputFile);
try
{
readData(in);
return data;
}
finally
{
inputFile.close();
}
}
这会将所有异常传递到链上,还是只会传递检查过的 IOException?