title: Am I using the Java 7 try-with-resources correctly
body: <p>I am expecting the buffered reader and file reader to close and the resources released if the exception is throw.</p>
  
  <pre><code>public static Object[] fromFile(String filePath) throws FileNotFoundException, IOException
  {
      try (BufferedReader br = new BufferedReader(new FileReader(filePath)))
      {
          return read(br);
      } 
  }
  </code></pre>
  
  <p>However, is there a requirement to have a <code>catch</code> clause for successful closure?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Essentially, is the above code in Java 7 equivalent to the below for Java 6:</p>
  
  <pre><code>public static Object[] fromFile(String filePath) throws FileNotFoundException, IOException
  {
  
      BufferedReader br = null;
  
      try
      {
          br = new BufferedReader(new FileReader(filePath));
  
          return read(br);
      }
      catch (Exception ex)
      {
          throw ex;
      }
      finally
      {
          try
          {
              if (br != null) br.close();
          }
          catch(Exception ex)
          {
          }
      }
  
      return null;
  }
  </code></pre>