title: Adding 'throws' on an extended class?
body: <p>I'm making a simple application with the Socket API, but have run into a small issue that I haven't found the answer for.</p>
  
  <p>The application is supposed to be multi-threaded, so that the main method starts both the server and client threads.</p>
  
  <pre><code>public class UDPClientServer1 extends Thread
  </code></pre>
  
  <p>However, since the the Socket classes need to throw some specific exceptions, I must also do this:</p>
  
  <pre><code>public void runClient() throws SocketException, UnknownHostException, IOException
  </code></pre>
  
  <p>and similarly for the runServer() method.</p>
  
  <p>Not that there's anything wrong with that, but is there a more elegant solution? Something along the lines of :</p>
  
  <pre><code>public class UDPClientServer1 extends Thread, throws Exception
  </code></pre>