|NO.Z.00005|——————————|BigDataEnd|——|Java&核心类库.V05|——|Java.v05|包装类|概念分类|

一、包装类的概念和分类
### --- 包装类的概念

~~~     ——>        通常情况下基本数据类型的变量不是对象,
~~~     ——>        为了满足万物皆对象的理念就需要对基本数据类型的变量进行打包封装处理变成对象,
~~~     ——>        而负责将这些变量声明为成员变量进行对象化处理的相关类,叫做包装类。
~~~     ——>        如:
~~~     ——>        Person p = new Person();
~~~     ——>        int num = 10;
~~~     ——>        11.3.2 包装类的分类
二、包装类的分类
包装类 对应的基本类型
java.lang.Byte  byte
java.lang.Short short
java.lang.Integer int
java.lang.Long long
java.lang.Float float
java.lang.Double double
java.lang.Boolean boolean
java.lang.Character char

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

posted on 2022-04-03 18:20  yanqi_vip  阅读(23)  评论(0)    收藏  举报

导航