title: Java - Common Gotchas
body: <p>In the same spirit of other platforms, it seemed logical to follow up with this question: What are common non-obvious mistakes in Java? Things that seem like they ought to work, but don't.</p>
  
  <p>I won't give guidelines as to how to structure answers, or what's "too easy" to be considered a gotcha, since that's what the voting is for.</p>
  
  <p>See also:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/166653/perl-common-gotchas">Perl - Common gotchas</a></li>
  <li><a href="https://stackoverflow.com/questions/66117/aspnet-common-gotchas">.NET - Common gotchas</a></li>
  </ul>