当前位置:网站首页>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
边栏推荐
- PowerShell: use PowerShell behind the proxy server
- 【大型电商项目开发】性能压测-性能监控-堆内存与垃圾回收-39
- 微信小程序;胡言乱语生成器
- 【LeetCode】88. Merge two ordered arrays
- MySQL REGEXP:正则表达式查询
- 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!
- Armv8-a programming guide MMU (3)
- Redis(1)之Redis简介
- Database postragesql client connection default
- Valentine's Day flirting with girls to force a small way, one can learn
猜你喜欢

Exploration and practice of integration of streaming and wholesale in jd.com
![[CTF] AWDP summary (WEB)](/img/4c/574742666bd8461c6f9263fd6c5dbb.png)
[CTF] AWDP summary (WEB)

Armv8-a programming guide MMU (3)

MySQL REGEXP:正则表达式查询

The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety

ROS command line tool

Redis master-slave replication cluster and recovery ideas for abnormal data loss # yyds dry goods inventory #

【大型电商项目开发】性能压测-优化-中间件对性能的影响-40

Restful Fast Request 2022.2.1发布,支持cURL导入

微信小程序:最新wordpress黑金壁纸微信小程序 二开修复版源码下载支持流量主收益
随机推荐
微信小程序:最新wordpress黑金壁纸微信小程序 二开修复版源码下载支持流量主收益
Discrete mathematics: reasoning rules
PHP Joseph Ring problem
Nebula importer data import practice
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!
Restful Fast Request 2022.2.1发布,支持cURL导入
JS implementation determines whether the point is within the polygon range
力扣剑指offer——二叉树篇
Yyds dry inventory jetpack hit dependency injection framework Getting Started Guide
Discrete mathematics: propositional symbolization of predicate logic
Heartless sword English translation of Xi Murong's youth without complaint
Common bit operation skills of C speech
Wechat applet; Gibberish generator
One plus six brushes into Kali nethunter
Win:使用 Shadow Mode 查看远程用户的桌面会话
Win:使用组策略启用和禁用 USB 驱动器
Numpy library introductory tutorial: basic knowledge summary
Global and Chinese markets of radiation linear accelerators 2022-2028: Research Report on technology, participants, trends, market size and share
Li Kou Jianzhi offer -- binary tree chapter
Database postragesq BSD authentication