类中 成员变量的默认值

  数据类型 默认值
基本数据类型 整数类型(byte,short,int,long) 0
  浮点数类型(float,double) 0.0
  字符类型(char) '\u0000'
  布尔类型(boolean) false
引用数据类型 数组,类,接口 null

猜你喜欢

转载自blog.csdn.net/qq_32367263/article/details/81323843