当前位置:网站首页>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
边栏推荐
- Jcenter () cannot find Alibaba cloud proxy address
- 力扣剑指offer——二叉树篇
- 【大型电商项目开发】性能压测-性能监控-堆内存与垃圾回收-39
- What is the current situation and Prospect of the software testing industry in 2022?
- [swagger]-swagger learning
- Redis(1)之Redis简介
- Using openpyxl module to write the binary list into excel file
- Wechat applet; Gibberish generator
- 19. Delete the penultimate node of the linked list
- PHP 基础篇 - PHP 中 DES 加解密详解
猜你喜欢
【大型电商项目开发】性能压测-优化-中间件对性能的影响-40
Restful fast request 2022.2.1 release, support curl import
How to safely eat apples on the edge of a cliff? Deepmind & openai gives the answer of 3D security reinforcement learning
Win: use PowerShell to check the strength of wireless signal
[CTF] AWDP summary (WEB)
Expansion operator: the family is so separated
Redis master-slave replication cluster and recovery ideas for abnormal data loss # yyds dry goods inventory #
Delaying wages to force people to leave, and the layoffs of small Internet companies are a little too much!
Express routing, express middleware, using express write interface
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
随机推荐
Es uses collapsebuilder to de duplicate and return only a certain field
node工程中package.json文件作用是什么?里面的^尖括号和~波浪号是什么意思?
Exploration and practice of integration of streaming and wholesale in jd.com
Expansion operator: the family is so separated
Comment mettre en place une équipe technique pour détruire l'entreprise?
The server time zone value ‘� й ��� ʱ 'is unrecognized or representatives more than one time zone【
PHP 约瑟夫环问题
Global and Chinese market of nutrient analyzer 2022-2028: Research Report on technology, participants, trends, market size and share
微信小程序:独立后台带分销功能月老办事处交友盲盒
MySQL regexp: Regular Expression Query
PHP wechat official account development
微信小程序:星宿UI V1.5 wordpress系统资讯资源博客下载小程序微信QQ双端源码支持wordpress二级分类 加载动画优化
Interesting practice of robot programming 14 robot 3D simulation (gazebo+turtlebot3)
Restful Fast Request 2022.2.1发布,支持cURL导入
[development of large e-commerce projects] performance pressure test - Optimization - impact of middleware on performance -40
Include rake tasks in Gems - including rake tasks in gems
Outlook: always prompt for user password
Wechat applet; Gibberish generator
batchnorm.py这个文件单GPU运行报错解决
Package What is the function of JSON file? What do the inside ^ angle brackets and ~ tilde mean?