No global variables or methods allowed

As is the case with C#, Java does not allow global variables or methods.