3

簡単な質問です。このコードを考えると:

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()、ファイル ハンドルはまだ残っている (そしてリークしている) か、それとも閉じられているか?

4

1 に答える 1