class Person{ static int i; }
class Test{ public static void main(String args []){ Person.i=10; } }
注意,静态函数中不能直接引用非静态成员变量。