【文件属性】:
文件名称:java8rt.jar源码-fwh-JVM:对于JVM情况
文件大小:18KB
文件格式:ZIP
更新时间:2021-06-04 16:38:46
系统开源
java8
rt.jar源码
layout
title
categories
description
keywords
post
类加载机制深度解析
Jvm
Java
类加载机制深度解析
wenhao,
文浩
,
Jvm,
classLoader
,
Java
准备:
Markdown编写工具
有道云笔记
Idea开发工具
GItHub项目地址
分析:
类加载运行全过程:
当我们用java命令运行某个类的main函数启动程序时,首先需要通过类加载器把主类加载到JVM。
public
class
Math
{
public
static
final
int
initData
=
666;
public
static
User
user
=
new
User();
public
int
compute()
{
//一个方法对应一块栈帧内存区域
int
a
=
1;
int
b
=
2;
int
c
=
(a
+
b)
*
10;
return
c;
}
public
static
void
main(String[]
args)
{
Math
math
=
new
Math();
math
【文件预览】:
fwh-JVM-master
----pom.xml(25KB)
----readme.md(29KB)
----fwh-test.txt(0B)
----src()
--------main()