Java "Global" variables with static

public class JavaGlobals
{
    int globalInt = 123;
    static int staticInt = 456;

    public void function1()
    {
       System.out.println("Inside function1");
    }

    public static void function2()
    {
       System.out.println("Inside function2");
    }

    public static void main(String args[])
    {
       JavaGlobals testRun = new JavaGlobals();

       System.out.println("Global int 1= " + testRun.globalInt);
       System.out.println("Global int 2= " + staticInt);
       testRun.function1();
       function2();
    }
}