I think ; by itself is allowed anywhere as long as it is not disturbing the expected syntax
For example foll. code snippet is valid
if(i==1)
{
System.out.println("hi");;;;;;;;;;;;
}
and
if(false);
{
System.out.println("hi");
}
O/p is hi as if condition is changed into a statement.
but it won't work here
public static void main(
String args[]);
Did not get anything reg. this in JLS. Hope others too can help.
Good luck;