title: Difference between java ' assert 'and ' if () {} else exit;'
body: <p>what is the difference between java <code>assert</code>  and  <code>if () {}  else exit;</code>?</p>
  
  <p>can i just use <code>if () {} else exit</code> instead of <code>assert</code> ?</p>