不多说,直接上干货! TypeConvertDemo.java //自动类型转换 class TypeConvertDemo { public static void main(String[] args) { //自动类型转换 ; short s = b; int i = s; long L = s; float f =L; double d = f; //byte b2 = d; //错误 :从double转换到byte可能会有精度损失 System.out.println(d); //需求…