title: Java Try Catch block
body: <p>I initially started programming in college and learnt vb.net. Now I have decided to make the move to Java and have some queries. In vb, the try catch statement is laid out as follows </p>
  
  <pre><code>try
  Catch ex as exception
  finally
  End catch
  </code></pre>
  
  <p>but from the java website (<a href="https://docs.oracle.com/javase/tutorial/essential/exceptions/putItTogether.html" rel="nofollow">https://docs.oracle.com/javase/tutorial/essential/exceptions/putItTogether.html</a>)
  i found that in java you use two catches like so:</p>
  
  <pre><code>    try {
  
  } catch (ExceptionType name) {
  
  } catch (ExceptionType name) {
  
  }
  </code></pre>
  
  <p>i was hoping someone could explain why you need two catches in java and what do the respective catches do/catch.</p>
  
  <p>Thanks.</p>