摘要:
基本类型与包装类型对照 基本类型 基本类型包装类 byte Byte short Short int Integer long Long float Float double Double char Character boolean Boolean 基本类型与包装类型的不同 定义方式不同:基本类型 阅读全文
摘要:
自动转换 将 取值范围小的类型 自动提升为 取值范围大的类型 byte a = 3; int b = 3; int c = a + b; // b 自动转换为int类型 byte、short、char运算时自动转为int 转换规则 byte、short、char‐‐>int‐‐>long‐‐>flo 阅读全文