Java中,有如下三种: 基本数据类型不会自动初始化 引用类型变量会自动初始化为null 类中的变量会自动初始化 转载于:https://www.cnblogs.com/maxiaoshuai/p/6597187.html