Will something bad happen if I create a BufferedReader and forget to use the close() method before exiting my program? Thanks a lot!
It will be closed, not by the close-method, but the socket/file-handle, if any, will be cleaned up.
Will something bad happen if I create a BufferedReader and forget to use the close() method before exiting my program? Thanks a lot!
It will be closed, not by the close-method, but the socket/file-handle, if any, will be cleaned up.