Today, after half an hour of searching for a bug, I discovered that it is possible to put a semicolon after an if statement instead of code, like this:
if(a
A possible use case:
if (a==b); else { // Do something }
Not good, but possible.
Still, I do think that the Java specification should disallow an empty if.
if