title: Java Socket and ServerSocket Issue
body: <p>I have this code snippet:</p>
  
  <pre><code>ServerSocket serversocket=new ServerSocket(DEFAULTPORT);
  serversocket.setSoTimeout(1000);
  Socket socket=serversocket.accept();
  </code></pre>
  
  <ol>
  <li><p>Does closing the <code>serversocket</code> object also affects the state of the <code>socket</code> object?</p></li>
  <li><p>If I close the <code>serversocket</code> object can I still use the <code>socket</code> object for my streams?</p></li>
  </ol>