当前位置:网站首页>大厂面试总结大全二
大厂面试总结大全二
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
边栏推荐
- With an estimated value of 90billion, the IPO of super chip is coming
- 高中物理:力、物体和平衡
- R语言plotly可视化:plotly可视化互相重叠的直方图(historgram)、并在直方图的顶部边缘使用geom_rug函数添加边缘轴须图Marginal rug plots
- 如何进行MDM的产品测试
- Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
- What if Kaili can't input Chinese???
- 股价大跌、市值缩水,奈雪推出虚拟股票,深陷擦边球争议
- 补能的争议路线:快充会走向大一统吗?
- 超标量处理器设计 姚永斌 第6章 指令解码 摘录
- With an annual income of more than 8 million, he has five full-time jobs. He still has time to play games
猜你喜欢
Easy to use map visualization
Self reflection of a small VC after two years of entrepreneurship
Once the "king of color TV", he sold pork before delisting
超标量处理器设计 姚永斌 第7章 寄存器重命名 摘录
With an annual income of more than 8 million, he has five full-time jobs. He still has time to play games
DB engines database ranking in July 2022: Microsoft SQL Server rose sharply, Oracle fell sharply
Vscode modification indentation failed, indent four spaces as soon as it is saved
[Huawei HCIA continuous update] SDN and FVC
[HCIA continuous update] WLAN overview and basic concepts
[test development] software testing - Basics
随机推荐
Achieve animation effect through event binding
【209】go语言的学习思想
比李嘉诚还有钱的币圈大佬,刚在沙特买了楼
雨量预警广播自动化数据平台BWII 型广播预警监测仪
用于图数据库的开源 PostgreSQL 扩展 AGE被宣布为 Apache 软件基金会顶级项目
ARTS_20220628
To sort out messy header files, I use include what you use
Performance test of Gatling
Offline and open source version of notation -- comprehensive evaluation of note taking software anytype
图像检索(image retrieval)
Face_ Attendance statistics of recognition face recognition
Implementation of super large-scale warehouse clusters in large commercial banks
Internet addiction changes brain structure: language function is affected, making people unable to speak neatly
Open source PostgreSQL extension age for graph database was announced as the top-level project of Apache Software Foundation
【HCIA持续更新】WLAN工作流程概述
使用3DMAX制作一枚手雷
动态规划股票问题对比
内核中时间相关的知识介绍
celebrate! Kelan sundb and Zhongchuang software complete the compatibility adaptation of seven products
华为云ModelArts的使用教程(附详细图解)