当前位置:网站首页>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;
}
边栏推荐
- GPIO port details, Hal library operation keys
- Flink learning notes (XI) table API and SQL
- Fundamentals of Electronic Technology (III)__ Fundamentals of circuit analysis__ Basic amplifier operating principle
- Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 4 --blinker_ DHT_ WiFi (lighting technology app control + temperature and humidity data app display)
- JMX、MBean、MXBean、MBeanServer 入门
- [keil5 debugging] warning:enumerated type mixed with other type
- [untitled] proteus simulation of traffic lights based on 89C51 Single Chip Microcomputer
- You need to use MySQL in the opening experiment. How can you forget the basic select statement? Remedy is coming~
- Stm32-hal library learning, using cubemx to generate program framework
- Fundamentals of Electronic Technology (III)_ Chapter 2 principle of amplification circuit__ Crystal triode and field effect triode
猜你喜欢

UCI and data multiplexing are transmitted on Pusch - Part I

Fundamentals of Electronic Technology (III)_ Chapter 2 principle of amplification circuit__ Crystal triode and field effect triode

Nodemcu-esp8266 development board to build Arduino ide development environment

Programming ideas are more important than anything, not more than who can use several functions, but more than the understanding of the program

手机都算是单片机的一种,只不过它用的硬件不是51的芯片
![[combinatorics] Introduction to Combinatorics (combinatorial thought 2: mathematical induction | mathematical induction promotion | multiple induction thought)](/img/0e/dff6d3c6b7bf388bf71b0965533c25.jpg)
[combinatorics] Introduction to Combinatorics (combinatorial thought 2: mathematical induction | mathematical induction promotion | multiple induction thought)

numpy. Reshape() and resize() functions

Error output redirection

Seven sorting of ten thousand words by hand (code + dynamic diagram demonstration)

Oracle database SQL statement execution plan, statement tracking and optimization instance
随机推荐
NR PUCCH format0 sequence generation and detection mechanism
[untitled] proteus simulation of traffic lights based on 89C51 Single Chip Microcomputer
UCI and data multiplexing are transmitted on Pusch - determine the bit number of harqack, csi1 and csi2 (Part II)
要選擇那種語言為單片機編寫程序呢
单片机学到什么程度能找到工作,这个标准不好量化
Stm32-hal library learning, using cubemx to generate program framework
STM32 interrupt switch
Epoll read / write mode in LT and et modes
【男保姆式】教你打开第一个微信小程序
Flink CDC practice (including practical steps and screenshots)
Nr-prach: access scenario and access process
2020-08-23
Error output redirection
2021-09-26
Which language should I choose to program for single chip microcomputer
Runtime.getRuntime().gc() 和 Runtime.getRuntime().runFinalization() 的区别
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
Intelligent home design and development
Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 4 --blinker_ DHT_ WiFi (lighting technology app control + temperature and humidity data app display)
Oracle数据库 SQL语句执行计划、语句跟踪与优化实例