title: Embedded Jetty why to use join
body: <p>An example taken from an Embedded Jetty tutorial suggests the following:</p>
  
  <pre><code>public static void main(String[] args) throws Exception
  {
     Server server = new Server(8080);
     server.setHandler(new HelloHandler());
  
     server.start();
     server.join();}
  </code></pre>
  
  <p>Why do I need to add the line <code>server.join()</code>?  It works fine without it.</p>