类变量:
Static String name;
实例变量:
String name = "chy";
局部变量:
在普通方法里面
public Static method(){
int i = 0;
}
常量:
被final修饰的变量值不可改变