title: Java division by zero doesnt throw an ArithmeticException - why?
body: <p>Why doesn't this code throw an <code>ArithmeticException</code>? Take a look:</p>
  <pre><code>public class NewClass {
  
      public static void main(String[] args) {
          // TODO code application logic here
          double tab[] = {1.2, 3.4, 0.0, 5.6};
  
          try {
              for (int i = 0; i &lt; tab.length; i++) {
                  tab[i] = 1.0 / tab[i];
              }
          } catch (ArithmeticException ae) {
              System.out.println(&quot;ArithmeticException occured!&quot;);
          }
      }
  }
  </code></pre>
  <p>I have no idea!</p>