title: Integer division in Java
body: <p>This feels like a stupid question, but I can't find the answer anywhere in the Java documentation. If I declare two ints and then divide them, what exactly is happening? Are they converted to <code>floats/doubles</code> first, divided, then cast back to an <code>integer</code>, or is the division "done" as integers?</p>
  
  <p>Also, purely from experimentation, integer division seems to round the answer towards zero (i.e. <code>3/2 = 1</code> and <code>-3/2 = -1</code>). Am I right in believing this?</p>