当前位置:网站首页>Emballage automatique et déballage compris? Quel est le principe?
Emballage automatique et déballage compris? Quel est le principe?
2022-07-03 09:53:00 【Look word】
Emballage automatique et déballage compris??Quel est le principe?
Qu'est - ce qu'une boîte de démontage automatique?
- Emballage:Envelopper les types de base avec leurs types de référence correspondants;
- Déballage:Convertir le type d'emballage en type de données de base;
Exemples:
Integer i = 10; //Emballage
int n = i; //Déballage
Fichier Bytecode
L1
LINENUMBER 8 L1
ALOAD 0
BIPUSH 10
INVOKESTATIC java/lang/Integer.valueOf (I)Ljava/lang/Integer;
PUTFIELD AutoBoxTest.i : Ljava/lang/Integer;
L2
LINENUMBER 9 L2
ALOAD 0
ALOAD 0
GETFIELD AutoBoxTest.i : Ljava/lang/Integer;
INVOKEVIRTUAL java/lang/Integer.intValue ()I
PUTFIELD AutoBoxTest.n : I
RETURN
À partir du code byte,Nous avons découvert que l'emballage était en fait un appel EmballagevalueOf()Méthodes,Déballer, c'est appeler xxxValue()Méthodes.
Donc,,
Integer i = 10Équivalent àInteger i = Integer.valueOf(10)int n = iÉquivalent àint n = i.intValue();
Attention!:Si les boîtes sont démontées et emballées fréquemment,Il peut également affecter gravement le rendement du système.Nous devrions essayer d'éviter les opérations inutiles de déballage
private static long sum() {
// Il faut utiliser long Au lieu de Long
Long sum = 0L;
for (long i = 0; i <= Integer.MAX_VALUE; i++)
sum += i;
return sum;
}
边栏推荐
- Idea remote breakpoint debugging jar package project
- I didn't think so much when I was in the field of single chip microcomputer. I just wanted to earn money to support myself first
- Project cost management__ Cost management technology__ Article 8 performance review
- 307. Range Sum Query - Mutable
- UCI and data multiplexing are transmitted on Pusch - placement of data and UCI positions (Part III)
- STM32 serial port usart1 routine
- Exception handling of arm
- Basic knowledge of MySQL database (an introduction to systematization)
- [male nanny style] teach you to open the first wechat applet
- Education is a pass and ticket. With it, you can step into a higher-level environment
猜你喜欢

STM32 port multiplexing and remapping

JMX、MBean、MXBean、MBeanServer 入门

要选择那种语言为单片机编写程序呢
![Successful graduation [3]- blog system update...](/img/91/72cdea3eb3f61315595330d2c9016d.png)
Successful graduation [3]- blog system update...

Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 4 --blinker_ DHT_ WiFi (lighting technology app control + temperature and humidity data app display)

单片机职业发展:能做下去的都成牛人了,熬不动就辞职或者改行了

Stm32f407 key interrupt

没有多少人能够最终把自己的兴趣带到大学毕业上

numpy. Reshape() and resize() functions

Fundamentals of Electronic Technology (III)__ Chapter 1 resistance of parallel circuit
随机推荐
UCI and data multiplexing are transmitted on Pusch - placement of data and UCI positions (Part III)
内存数据库究竟是如何发挥内存优势的?
Learn the contents of 5g toolbox supporting NR through the NR resources provided by MATLAB
学习开发没有捷径,也几乎不存在带路会学的快一些的情况
Install local sources using yum
在三线城市、在县城,很难毕业就拿到10K
Nr-prach: access scenario and access process
You need to use MySQL in the opening experiment. How can you forget the basic select statement? Remedy is coming~
Definition and use of enum in C language
numpy. Reshape() and resize() functions
【力扣刷题笔记(二)】特别技巧,模块突破,45道经典题目分类总结,在不断巩固中精进
Quelle langue choisir pour programmer un micro - ordinateur à puce unique
【男保姆式】教你打开第一个微信小程序
I didn't think so much when I was in the field of single chip microcomputer. I just wanted to earn money to support myself first
【順利畢業】[1]-遊覽 [學生管理信息系統]
要选择那种语言为单片机编写程序呢
MYSQL数据库底层基础专栏
我想各位朋友都应该知道学习的基本规律就是:从易到难
The cyclic shift of PUCCH in NR channel is generated by MATLAB
Fundamentals of Electronic Technology (III)__ Fundamentals of circuit analysis__ Basic amplifier operating principle