// This rule specifies whether a semicolon after the
// type declaration is allowed. This is C++ and not Java
// but many compilers do accept it.

public class Foo
{
    private String text = "hello world";

    public Foo()
    {
        System.out.println(text);
    }
};
// the semicolon above is not Java but often accepted