class Foo { private void foo(byte myByte) { if (myByte == 0xFF) { System.out.println("wrong"); } if (myByte != 0xFFF) { System.out.println("wrong"); } if (myByte == (byte) 0xFF) { System.out.println("right"); } } void foo2(int i) { boolean a = i < 0x80000000L; boolean f = i > 0x7fffffff; } void f(int k) { if (k <= Integer.MAX_VALUE); if (k > Integer.MAX_VALUE); if (k >= Integer.MIN_VALUE); } void doo() { for (long l = Long.MIN_VALUE; l < Long.MIN_VALUE + 10; l++) { System.out.println(l); } } }