0
点赞
收藏
分享

微信扫一扫

基本类型和包装类

萨科潘 2022-01-22 阅读 135
java
//jdk1.5之后自动拆箱和装箱
//基本类型(栈) 转换 成引用类型(堆) -->装箱
//引用类型(堆) 转换 成基本类型(栈) -->拆箱

//boolean Boolean
//char Character
//Number 子类 Byte, Float, Double, Short , Integer, Long
//byte Byte   
//float Float
//double Double   		
//short Short
//int Integer
//long Long

举报

相关推荐

0 条评论