当前位置:网站首页>JVM|前言介绍
JVM|前言介绍
2022-06-11 21:23:00 【z754916067】
JVM
作用
Java虚拟机就是二进制字节码的运行环境,运行在操作系统之上,与硬件没有直接的交互。负责装载字节码到其内部,解释/编译为对应平台上的机器指令执行。
特点
- 一次编译,到处运行
- 自动内存管理
- 自动垃圾回收功能
生命周期
启动
Java虚拟机的启动是通过引导类加载器创建一个初始类来完成的,这个类由虚拟机的具体实现指定。
执行
执行一个所谓的Java程序的时候,真正在执行的是一个叫做Java虚拟机的进程。
退出
- 程序正常执行结束
- 程序在执行过程中遇到了异常或错误而异常终止
- 由于操作系统出现错误而导致Java虚拟机进程终止
- 某线程调用Runtime类或System类的exit方法,或者Runtime类的halt方法,且Java安全管理器也允许这次exit或halt操作。
边栏推荐
- JVM heap
- select _ Lazy loading
- LabVIEW controls Arduino to realize ultrasonic ranging (advanced chapter-5)
- Three waves of changes in cloud computing
- Pyqt5 technical part - set the default value of qcombobox drop-down box and get the current selection of the drop-down box
- apache 本地多端口配置
- Website online customer service system Gofly source code development log - 2 Develop command line applications
- gateway先启动其他微服务,在启动网关,网关启动不了,且无异常日志;先启动网关,所有服务能正常启动
- js对返回的数据的各种数据类型进行非空判断。
- IDEA中,运行yarn命令,显示无法加载文件,因为在此系统上禁用运行脚本
猜你喜欢

数据库每日一题---第9天:销售员

The gateway starts other microservices first. When the gateway is started, the gateway cannot be started and there is no exception log; Start the gateway first, and all services can be started normall

SQL的语法

One article to show you how to understand the harmonyos application on the shelves

JVM方法区

Cs144 lab0 lab1 record

ORA-04098: trigger ‘xxx.xxx‘ is invalid and failed re-validation

Syntax of SQL

【博弈论-完全信息静态博弈】 战略式博弈

Pyqt5 technical part - set the default value of qcombobox drop-down box and get the current selection of the drop-down box
随机推荐
JS monitor scrolling touch bottom load more_ Browser scrolls to the bottom to load more
In idea, run the yarn command to show that the file cannot be loaded because running scripts is disabled on this system
Answer fans' questions | count the number and frequency of letters in the text
bzoj3188 Upit
Go language conditional statement
Release of version 5.6 of rainbow, add multiple installation methods, and optimize the topology operation experience
Goto statement of go language
Codeforces Round #739 (Div. 3)解题报告
AC自动机
Field queryIndexFieldnameService in xxxImpl required a single bean, but 19 were found:
12 golden rules of growth
RANSAC提取平面(MATLAB内置函数)
The secret of derating - don't challenge Datasheet
【 C Advanced language】 Integer Storage in Memory
Go language for loop
Part I physical layer
Jenkins+allure integrated report construction
可综合RTL代码设计方法和注意事项
UML系列文章(29)体系结构建模---模式和框架
Lr-link Lianrui makes its debut at the digital Expo with new products - helping the construction of new infrastructure data center