当前位置:网站首页>JVM's responsibility - load and run bytecode
JVM's responsibility - load and run bytecode
2022-07-05 01:42:00 【A bowl of humble powder】
One 、JVM Responsibility for
JVM It exists in JRE Medium , Bytecode must depend on JVM To run , It is running all Java The virtual computer of the program .JVM It's not cross platform ,JVM Our responsibilities mainly include two parts :
(1) Load the specified bytecode file
(2) Load the bytecode file into memory to run
Two 、JVM function class An example of 《 memoir 》
Remember the first one HelloWord Do you ?
1、 New text document , The name for HelloWord.java
2、 Enter the following code ( Use Editplus or Notepad++)
class Hello {
public static void main(String[] args) {
System.out.println(" elder male cousin ! I came out !!");
}
}
3、 Open command window
4、 Use javac Tools , Yes HelloWord.java File compilation operation :javac file name .java
5、 After compilation , Will generate HelloWord.class file ( If compilation fails , No bytecode file is generated )
6、 start-up JVM, And load HelloWord This bytecode and execute , Grammar is :java Class name
【 Be careful 】 The command to run is java Hello , It's not java HelloWord.class
Run class Hello There must be main Method
【1】JRE:Java Runtime Environment,Java Running environment【2】JDK:Java Development Kit,Java development tool ( Including development Java All tools of the program, such as javac and java etc. ,JDK contain JRE)【3】JVM:Java Virtual Machine,Java virtual machine
边栏推荐
- Async/await you can use it, but do you know how to deal with errors?
- [OpenGL learning notes 8] texture
- Outlook:总是提示输入用户密码
- 当产业互联网时代真正发展完善之后,将会在每一个场景见证巨头的诞生
- Hedhat firewall
- Nebula importer data import practice
- 【CTF】AWDP总结(Web)
- MySQL REGEXP:正则表达式查询
- One plus six brushes into Kali nethunter
- [flutter topic] 64 illustration basic textfield text input box (I) # yyds dry goods inventory #
猜你喜欢
JS implementation determines whether the point is within the polygon range
Blue Bridge Cup Square filling (DFS backtracking)
Phpstrom setting function annotation description
Wechat applet: independent background with distribution function, Yuelao office blind box for making friends
Kibana installation and configuration
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Five ways to query MySQL field comments!
How to safely eat apples on the edge of a cliff? Deepmind & openai gives the answer of 3D security reinforcement learning
Exploration and practice of integration of streaming and wholesale in jd.com
Wechat applet: exclusive applet version of the whole network, independent wechat community contacts
随机推荐
Restful fast request 2022.2.1 release, support curl import
JS implementation determines whether the point is within the polygon range
微信小程序:独立后台带分销功能月老办事处交友盲盒
Flutter 2.10 update details
Database postragesq peer authentication
Yyds dry goods inventory kubernetes management business configuration methods? (08)
Exploration and practice of integration of streaming and wholesale in jd.com
Yyds dry goods inventory [Gan Di's one week summary: the most complete and detailed in the whole network]; detailed explanation of MySQL index data structure and index optimization; remember collectio
[Chongqing Guangdong education] National Open University spring 2019 1042 international economic law reference questions
Runc hang causes the kubernetes node notready
[flutter topic] 64 illustration basic textfield text input box (I) # yyds dry goods inventory #
小程序容器技术与物联网 IoT 可以碰撞出什么样的火花
Restful Fast Request 2022.2.1发布,支持cURL导入
Game 280 of leetcode week
【大型电商项目开发】性能压测-优化-中间件对性能的影响-40
Async/await you can use it, but do you know how to deal with errors?
微信小程序:微群人脉微信小程序源码下载全新社群系统优化版支持代理会员系统功能超高收益
Common bit operation skills of C speech
MATLB | multi micro grid and distributed energy trading
PowerShell:在代理服务器后面使用 PowerShell