I have three questions.
To explain, I was reviewing someone\'s code, and noticed BufferedReader
s sometimes aren\'t being closed. Usually, Eclipse gives a w
BuffereddReader close()
Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.
So, if you don't close(), system resources may be still associated with the reader which may cause memory leak.
Why eclipse not highlighting: it is not compile time error if you ignore calling close(), so eclipse don't highlight.