只是一个简单的问题。鉴于此代码:
try {
// operation on inputstream "is"
} finally {
try {
is.close();
} catch (IOException ioe) {
//if ioe is thrown, will the handle opened by 'is' be closed?
}
}
如果close()
抛出,文件句柄是否仍然存在(并泄漏),还是已经关闭?