当前位置:网站首页>Interview summary of large factory Daquan II
Interview summary of large factory Daquan II
2022-07-04 18:10:00 【[email protected]】
1、java virtual machine jvm Class loading mechanism of
The whole process of class loading :
load --> link ( verification -> Get ready -> analysis )–> initialization
Loading phase :
1. Load the binary byte stream of the class into the method area through the fully qualified class name of the class ( Class variables ).
Link phase :
1.( verification ) Verify whether the information contained in the virtual machine byte stream meets the requirements of the current virtual machine .
2.( Get ready ) Set the default initial value for class variables ,final Decorated memory will be allocated during compilation , Explicit initialization in the preparation phase , And instance variables are assigned to java In the pile .
3.( analysis ) The process of converting a symbolic reference in a constant pool to a direct reference ; Analysis is in jvm Execute initialization before executing .
Initialization phase :
1. The process of performing class constructor methods ,jvm Execute subclass constructor , Make sure that the parent constructor has been executed ,jvm Ensure that the constructor of a class is locked synchronously in the case of multithreading ; After the execution, the loading of the class is completed .
版权声明
本文为[[email protected] slightly fat]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207041610424199.html
边栏推荐
- 用于图数据库的开源 PostgreSQL 扩展 AGE被宣布为 Apache 软件基金会顶级项目
- High school physics: force, object and balance
- shell脚本的替换功能实现
- New technology releases a small program UNIPRO to meet customers' mobile office scenarios
- With the stock price plummeting and the market value shrinking, Naixue launched a virtual stock, which was deeply in dispute
- Ks007 realizes personal blog system based on JSP
- Blood spitting finishing nanny level series tutorial - play Fiddler bag grabbing tutorial (2) - first meet fiddler, let you have a rational understanding
- 华为云ModelArts的使用教程(附详细图解)
- 【Hot100】31. Next spread
- 【HCIA持续更新】网络管理与运维
猜你喜欢
随机推荐
Heartless sword Chinese translation of Elizabeth Bishop's a skill
Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue
DB engines database ranking in July 2022: Microsoft SQL Server rose sharply, Oracle fell sharply
wuzhicms代码审计
Wuzhicms code audit
Master the use of auto analyze in data warehouse
90后开始攒钱植发,又一个IPO来了
超标量处理器设计 姚永斌 第7章 寄存器重命名 摘录
Superscalar processor design yaoyongbin Chapter 7 register rename excerpt
2022年DCMM认证全国各地补贴政策汇总
通过事件绑定实现动画效果
Make a grenade with 3DMAX
大厂面试总结大全二
ITSS运维能力成熟度分级详解|一文搞清ITSS证书
Weima, which is going to be listed, still can't give Baidu confidence
【211】go 处理excel的库的详细文档
Win32 API 访问路由的加密网页
Tutorial on the use of Huawei cloud modelarts (with detailed illustrations)
Flask 轻量web框架
Blood spitting finishing nanny level series tutorial - play Fiddler bag grabbing tutorial (2) - first meet fiddler, let you have a rational understanding