GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update Java基础知识点和答案.md · leaoway/Java-Interview@71b107b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Java基础知识点和答案.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Java基础知识点和答案.md‎

Copy file name to clipboardExpand all lines: Java基础知识点和答案.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Byte short int long float double boolean char
88
比如:把int转化成Integer,double转化成Double,等等。反之就是自动拆箱。
99
- 原始类型: boolean,char,byte,short,int,long,float,double
1010
- 封装类型:Boolean,Character,Byte,Short,Integer,Long,Float,Double
11-
示例:
11+
- 示例:
1212
Integer i = 10;
1313
这个过程中会自动根据数值创建对应的 Integer对象,这就是装箱。
1414
那什么是拆箱呢?顾名思义,跟装箱对应,就是自动将包装器类型转换为基本数据类型:

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.