what happens to finally block in the following cases?
<p>if i have a following code </p>

<pre><code>      try{

           //some code

      }catch(Exception e){

           //some code

      }finally{

      }
</code></pre>

<p>what happens to the finally block in the following cases</p>

<ol>
<li><p>if any checked exceptions happen.</p></li>
<li><p>if System.exit() is called.</p></li>
<li><p>if any unchecked exceptions happen.</p></li>
<li><p>if any errors happen.</p></li>
</ol>
