BufferedReader 關(guān)閉了還用關(guān)閉InputStreamReader 和FileInputStream 嗎?
我聲明了:
FileInputStream fileInputStream1 = null;
FileInputStream fileInputStream = null;
BufferedReader bufferedReader = null;
當(dāng)我流使用完,我應(yīng)該每個(gè)都關(guān)閉嗎?
我聲明了:
FileInputStream fileInputStream1 = null;
FileInputStream fileInputStream = null;
BufferedReader bufferedReader = null;
當(dāng)我流使用完,我應(yīng)該每個(gè)都關(guān)閉嗎?
2019-03-19
舉報(bào)
2019-03-22
調(diào)用啦就要關(guān)閉? 從小到大關(guān)閉