Correct Ways to Close InputStream and OutputStream in Java with...
For programmers who have never done system programming using C or C++, this habit is more visible. To release the file descriptor held by this class as its limited resource and used in both socket connection and file handling, it is essential to close streams.