title: Why does a java program closes on termination but not a web browser
body: <p>If I write a <code>public static void main</code> java program, unless I put a <code>while (true)</code> loop, the program will run and then exit, closing my applet window.
  My question is when a web browser runs through rendering html content, after it has finished rendering, why doesn't it close itself? Where is the <code>while (true)</code> implicit in a web browser?</p>