title: What is the most efficient way to detect even numbers in Java?
body: <p>What would be the most efficient manner to determine that a number is even using Java, and why? </p>
  
  <p>Would it be using modulo or subtraction, or some other manner that I haven't actually thought of? </p>
  
  <p>One imagines I could determine this doing a simple test class - and I can - but that really wouldn't explain why, would it?</p>
  
  <p>I'm not doing some crazy-pants performance tuning for some lofty goal of processing <em>that</em> many items faster. But I was curious if one method <em>should</em> be preferred over the other as common practice. In the same way we wouldn't use <code>&amp;</code> in place of <code>&amp;&amp;</code>, why use <code>%</code> when we can use <code>&amp;</code>?</p>