title: What does it mean when the main method throws an exception?
body: <p>I'm reviewing a midterm I did in preparation for my final exam tomorrow morning. I got this question wrong, but there's no correct answer pointed out, and I neglected to ask the prof about it.</p>
  
  <p>Consider the following code snippet:</p>
  
  <pre><code>public static void main(String[] args) throws FileNotFoundException
  </code></pre>
  
  <p>Which of the following statements about this code is correct?</p>
  
  <ol>
  <li>The main method is designed to catch and handle all types of exceptions.</li>
  <li>The main method is designed to catch and handle the <code>FileNotFoundException</code>.</li>
  <li>The main method should simply terminate if the <code>FileNotFoundException</code> occurs.</li>
  <li>The main method should simply terminate if any exception occurs.</li>
  </ol>
  
  <p>I had chosen the second option.</p>