当前位置:网站首页>大厂面试总结大全二
大厂面试总结大全二
2022-07-04 16:11:00 【[email protected]】
1、java虚拟机jvm的类加载机制
类加载的完整过程:
加载 --> 链接(验证 -> 准备 -> 解析)–> 初始化
加载阶段:
1.通过类的全限定类名将这个类的二进制字节流加载到方法区(类变量)。
链接阶段:
1.(验证)校验虚拟机字节流中包含信息是否符合当前虚拟机的要求。
2.(准备)为类变量设置默认初始值,final修饰的在编译时候就会分配内存,在准备阶段进行显式初始化,而实例变量被分配到java堆中。
3.(解析)将常量池内的符号引用转换为直接引用的过程;解析是在jvm执行初始化之后再执行。
初始化阶段:
1.进行类构造器方法的过程,jvm执行子类构造器,要先确保父类构造器已经执行完毕,jvm保障一个类的构造器在多线程的情况下被同步加锁;执行完毕后类的加载就完成了。
版权声明
本文为[[email protected]微胖子]所创,转载请带上原文链接,感谢
https://blog.csdn.net/zouyang920/article/details/125596565
边栏推荐
- General environmental instructions for the project
- Detectron2 installation method
- curl 命令妙用
- I2C子系统之适配器的设备接口分析(i2c-dev.c文件分析)
- Offline and open source version of notation -- comprehensive evaluation of note taking software anytype
- celebrate! Kelan sundb and Zhongchuang software complete the compatibility adaptation of seven products
- Why are some online concerts always weird?
- 俄罗斯 Arenadata 发布基于PostgreSQL的产品
- 高中物理:力、物体和平衡
- 华为云ModelArts的使用教程(附详细图解)
猜你喜欢
[HCIA continuous update] overview of WLAN workflow
VSCode修改缩进不成功,一保存就缩进四个空格
90后开始攒钱植发,又一个IPO来了
ISO27001 certification process and 2022 subsidy policy summary
Superscalar processor design yaoyongbin Chapter 5 instruction set excerpt
How to test MDM products
雨量预警广播自动化数据平台BWII 型广播预警监测仪
如何进行MDM的产品测试
Developers, MySQL column finish, help you easily from installation to entry
Is it science or metaphysics to rename a listed company?
随机推荐
Achieve animation effect through event binding
曾经的“彩电大王”,退市前卖猪肉
Performance test of Gatling
Flask lightweight web framework
About the pit of firewall opening 8848 when Nacos is started
Firewall basic transparent mode deployment and dual machine hot standby
Talk about seven ways to realize asynchronous programming
Pytoch deep learning environment construction
Implementation of super large-scale warehouse clusters in large commercial banks
78 year old professor Huake impacts the IPO, and Fengnian capital is expected to reap dozens of times the return
90后开始攒钱植发,又一个IPO来了
R language plot visualization: plot visualization of multiple variable violin plot in R with plot
什么是低代码开发?
超标量处理器设计 姚永斌 第7章 寄存器重命名 摘录
Initial experience of domestic database tidb: simple and easy to use, quick to start
Large scale service exception log retrieval
Detectron2 installation method
With an annual income of more than 8 million, he has five full-time jobs. He still has time to play games
Hidden corners of coder Edition: five things that developers hate most
数学分析_笔记_第7章:多元函数的微分学