Java基本类型共有八种,基本类型可以分为三类: 整数类型byte、short、int、long,浮点数类型float、double。 字符类型char。 布尔类型boolean。 其中byte的范围面试的时候可能会问: