摘要:        
1. 2. 代码: package com.itheima.type; public class Type3 { public static void main(String[] args) { //掌握强制类型转换 int a=20; //byte b=a; 报错,直接将类型范围大的变量转换为类型    阅读全文
        
            posted @ 2023-11-13 16:56
小彭先森
阅读(7)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
1.表达式的自动类型转换: (1)在表达式中,小范围的变量,会自动转换为表达式中较大范围的类型,再参与运算 代码: package com.itheima.type; public class Type1 { public static void main(String[] args) { byte    阅读全文
        
            posted @ 2023-11-13 16:20
小彭先森
阅读(28)
评论(0)
推荐(0)
        
        
 
                    
                 浙公网安备 33010602011771号
浙公网安备 33010602011771号