Do I have to close FileInputStream?

后端 未结 8 797
广开言路
广开言路 2021-01-07 16:43

I am working as a trainee in Test Automation. I am working with creating Junit code with Eclipse and run using Eclipse. In that I am retriving the datas from excel sheet usi

8条回答
  •  天涯浪人
    2021-01-07 17:14

    Yes, you need to close the inputstream if you want your system resources released back.

    FileInputStream.close() is what you need.

提交回复
热议问题