摘要: 整型常量的默认值 整型常量有byte、short、int、long,默认类型int; byte b=12; byte b1=b+1;//编译报错 因为1默认是int类型,因此不能用byte接收,所以编译报错。 浮点型常量的默认值 浮点型常量有float、double,默认类型double; byte 阅读全文
posted @ 2021-06-03 20:22 南方风 阅读(178) 评论(0) 推荐(0)