当前位置:网站首页>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
边栏推荐
- Numpy library introductory tutorial: basic knowledge summary
- Lsblk command - check the disk of the system. I don't often use this command, but it's still very easy to use. Onion duck, like, collect, pay attention, wait for your arrival!
- Exploration and practice of integration of streaming and wholesale in jd.com
- Application and Optimization Practice of redis in vivo push platform
- 85.4% mIOU! NVIDIA: using multi-scale attention for semantic segmentation, the code is open source!
- If the consumer Internet is compared to a "Lake", the industrial Internet is a vast "ocean"
- Es uses collapsebuilder to de duplicate and return only a certain field
- 流批一体在京东的探索与实践
- Interesting practice of robot programming 14 robot 3D simulation (gazebo+turtlebot3)
- DOM basic syntax
猜你喜欢

R语言用logistic逻辑回归和AFRIMA、ARIMA时间序列模型预测世界人口

Wechat applet: new independent backstage Yuelao office one yuan dating blind box

Win: use PowerShell to check the strength of wireless signal

Yyds dry inventory jetpack hit dependency injection framework Getting Started Guide

Actual combat simulation │ JWT login authentication

"2022" is a must know web security interview question for job hopping

Is there a sudden failure on the line? How to make emergency diagnosis, troubleshooting and recovery

Wechat applet: the latest WordPress black gold wallpaper wechat applet two open repair version source code download support traffic main revenue

Expansion operator: the family is so separated

PHP wechat official account development
随机推荐
Pytorch fine tuning (Fortune): hollowed out design or cheating
Introduction to the gtid mode of MySQL master-slave replication
Wechat applet: Xingxiu UI v1.5 WordPress system information resources blog download applet wechat QQ dual end source code support WordPress secondary classification loading animation optimization
力扣剑指offer——二叉树篇
Phpstrom setting function annotation description
WCF: expose unset read-only DataMember property- WCF: Exposing readonly DataMember properties without set?
Win: use shadow mode to view the Desktop Session of a remote user
The server time zone value ‘� й ��� ʱ 'is unrecognized or representatives more than one time zone【
Database postragesql client authentication
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
小程序容器技术与物联网 IoT 可以碰撞出什么样的火花
Yyds dry inventory swagger positioning problem ⽅ formula
MATLB | multi micro grid and distributed energy trading
Global and Chinese market of optical densitometers 2022-2028: Research Report on technology, participants, trends, market size and share
After reading the average code written by Microsoft God, I realized that I was still too young
runc hang 导致 Kubernetes 节点 NotReady
ROS command line tool
Discrete mathematics: reasoning rules
MySQL backup and recovery + experiment
Global and Chinese markets of radiation linear accelerators 2022-2028: Research Report on technology, participants, trends, market size and share