Javaは闇が深いからな。挙げるといとまがないが、よくあるのが
if("test".equals(a)) {
これは
if(a != null && a.equals("test")) {
と同じわけだが、どちらにしてもいびつな書き方がイケテナイ