注意类常量不能使改
public class new_cls{
//类变量
public static int X=0;
//类常量
public static final int y=0;
类方法
public static void f(){
System.out.println("000")
}
public static void main(String[] args){
new_cls.f();//通过类名来调用类方法
f();//方法在类中,可以直接使用,不需要类名
}
}