My question is whether it is strictly mandatory to close a BufferedReader
with .close()
.
I am practicing with reading and writing files and, for example, if a BufferedWriter
does not close it with .close()
it does not do anything, therefore it is mandatory to close it.
The same thing happens with BufferedReader
, that is, it is strictly obligatory to close it? Or can it be left unlocked? Is there any problem?