Is it syntactically correct to have java classed ending with ; In most of the documentation java class syntax does not end with ;
However i successfully able to compile below code,
public class ClassDemo {
public static void main (String args[]) {
System.out.println ("Hello World!");
}
};
My question is, is it correct to end a class declaration with a ;? Why is it ignored by the compiler, and seems to be indifferent whether there is a ; at the end or not?