局部变量(local variable)方法或语句块中定义的变量成员变量(也叫实例变量 member variable)方法外部,类的内部定义的变量。静态变量(类变量 static variable)使用static定义。