What is the difference between closing Input/OutputStream and closing Socket directly?
From the java api documentation for Socket: public void close() throws IOException Closes this socket. Any thread currently blocked in an I/O operation upon this socket will throw a SocketException. Once a socket has been closed, it is not available for further networking use (i.e. can’t be reconnected or rebound). A new socket needs to … Read more