JAVA类的成员变量的默认值

类的成员变量不是不须要赋值,而是会自动初始化。 boolean false char ‘\u0000’(null) byte (byte)0 short (short)0 int 0 long 0L float 0.0f double 0.0d String nulljava //char的默认值 package test; public class test { static char
相关文章
相关标签/搜索