title: Will the streams associated with sockets closed automatically when the socket is closed?
body: <p>I am using Java sockets (TCP) to communicate with the server.
  My question is, Will the input and output streams associated with a socket is automatically closed, when the socket is closed? is it safe to do that?</p>