当前位置:网站首页>Differences between basic types and packaging classes
Differences between basic types and packaging classes
2022-06-28 05:59:00 【Coder without code】
difference :
1. Basic types are stored on the stack , The package type is stored in the stack . Because the stack is more efficient , So the basic types are preserved .
2. The packaging class is the object , Have methods and fields , The invocation of an object is the address of the reference object .
3. The basic type is value passing , Wrapper classes are reference passing .
4. towards ArrayList,LinkedList When releasing data , You can only put Object Type of , The basic type cannot be put in .
Basic types , Packaging And its default value , The default value for the wrapper class is Null.
byte 0 Byte
short 0 Short
int 0 Integer
long 0 Long
float 0.0 Float
double 0.0 Double
char Space Character
boolean false Boolean
边栏推荐
- How popular are FB and WhatsApp mass messages in 2022?
- 19 fonctions de perte d'apprentissage profond
- Mysql-16-subquery
- Object对象转 List集合
- 移动广告发展动向:撬动存量,精细营销
- Lenovo hybrid cloud Lenovo xcloud, new enterprise IT service portal
- File foundation - read / write, storage
- Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance
- Oracle fundamentals summary
- Difficulty calculation of Ethereum classic
猜你喜欢

Filecoin hacker song developer competition

YYGH-BUG-02

lombok @EqualsAndHashCode 注解如何让对象.equals()方法只比较部分属性

What is webrtc?

qtcanpool 知 07:Ribbon

ES9023音频解码芯片的工作原理

Jenkins continuous integration 1

5g network overall architecture

Mysql-16-subquery

How the third-party libraries in cocoapod reference local header files
随机推荐
Syn retransmission caused by IPVS
High quality domestic stereo codec cjc8988, pin to pin replaces wm8988
Maskrcnn, fast RCNN, fast RCNN excellent video
How popular are FB and WhatsApp mass messages in 2022?
Sklearn Feature Engineering (summary)
mysql常用函数
Filecoin hacker song developer competition
Yygh-6-wechat login
Shanghai Yuge ASR CAT1 4G module 2-way low power 4G application
YYGH-BUG-03
Data warehouse: financial / banking theme layer division scheme
JSP
V4l2 driver layer analysis
sql及list去重操作
ThreadLocal
Flink window mechanism (two waits and the last explanation)
Mosaic data enhanced mosaic
原动力×云原生正发声 降本增效大讲堂
Data middle office: an article that takes you to understand data middle office in simple terms
Object对象转 List集合