Possible Duplicate:
semicolon at end of if statement
I was programming, and found a bug in my code, and it was because of a semi colon after an "if" statement, and its boxy "{ xxx }" was being executed as if it has its own scope -- so everything would get compiled.
This begs the question, why is:
if (x != null);
A possible statement in Java, it seems like a useless line of code that could generate lots of bugs, etc.