title: Java: Scanner not accepting try-catch class error when reading from file
body: <p>At Java 8 documentation, it is written that the constructor from Scanner which receives a File Source as parameter throws a <code>FileNotFoundException</code>.
  But take a look at the following code:</p>
  
  <pre><code>  try{
              sc = new Scanner("Rede.txt");      //This archive already exists
          }
          catch(FileNotFoundException f){
              f.printStackTrace;
          }
          finally{
              sc.close();
          }
  </code></pre>
  
  <p>When I run it, I get something like:</p>
  
  <pre><code>error:exception FileNotFoundException is never thrown in body of corresponding try statement
                catch(FileNotFoundException f){
  </code></pre>
  
  <p>Same happens with <code>IOException</code>. The curious is that, if I throw away the try-catch part, the code compiles.</p>
  
  <p>What is wrong here?</p>