示例代码: 手动装箱,手动拆箱 Integer iOb=new Integer(100);//手动装箱int i=iOb.intValue(); //手动拆箱System.out.println(i+ +iOb); 自动装箱,自动拆箱 Integer iOb=1000;int i=iOb;System.out.println(i+ +iOb); 静态导入:可以直接通过静态成员名来
示例代码:
自动装箱,自动拆箱
静态导入:可以直接通过静态成员名来引用
注解(元数据):在java源文件中嵌入附加信息
|
2021-06-05
2021-05-27
2021-05-26
2021-06-05
2021-05-16