Freeing java file handles

后端 未结 3 1560
庸人自扰
庸人自扰 2021-01-25 08:18

We have a rather large and complex application written in Java which is running on top of the Gridgain package. The problem I am having is that this application will sit there p

3条回答
  •  囚心锁ツ
    2021-01-25 08:45

    Java specification says that it is not guarantee that 'finalize()' will be executed. Your code must explicitly close FileReader yourself.

提交回复
热议问题