当前位置:网站首页>JVM|前言介绍
JVM|前言介绍
2022-06-11 21:23:00 【z754916067】
JVM
作用
Java虚拟机就是二进制字节码的运行环境,运行在操作系统之上,与硬件没有直接的交互。负责装载字节码到其内部,解释/编译为对应平台上的机器指令执行。
特点
- 一次编译,到处运行
- 自动内存管理
- 自动垃圾回收功能
生命周期
启动
Java虚拟机的启动是通过引导类加载器创建一个初始类来完成的,这个类由虚拟机的具体实现指定。
执行
执行一个所谓的Java程序的时候,真正在执行的是一个叫做Java虚拟机的进程。
退出
- 程序正常执行结束
- 程序在执行过程中遇到了异常或错误而异常终止
- 由于操作系统出现错误而导致Java虚拟机进程终止
- 某线程调用Runtime类或System类的exit方法,或者Runtime类的halt方法,且Java安全管理器也允许这次exit或halt操作。
边栏推荐
- 一步步把 SAP UI5 应用部署到 SAP BTP Kyma 运行环境中去
- 第一部分 物理层
- One article to show you how to understand the harmonyos application on the shelves
- JVM runtime constant pool and direct memory
- Object creation process of JVM
- 【 C Advanced language】 Integer Storage in Memory
- ASCII码对照表
- 如何将SAP API Hub 上提供的工作流导入到 SAP BTP 上
- JVM运行时常量池以及直接内存
- 常用文件函数
猜你喜欢

Solution to the problem of PHP strtotime obtaining natural monthly error

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

Deriving Kalman filter from probability theory
![[Part 15] use and basic principle of forkjoinpool [key]](/img/36/e21b16ec92d444149bc793f340f9f3.jpg)
[Part 15] use and basic principle of forkjoinpool [key]

Iros 2021 | new idea of laser vision fusion? Lidar intensity diagram +vpr

Apache local multi port configuration

JS performs non empty judgment on various data types of the returned data.

Live broadcast with practice | 30 minutes to build WordPress website with Alibaba cloud container service and container network file system

Network security Kali penetration learning introduction to web penetration using MSF penetration to attack win7 host and execute commands remotely

LabVIEW控制Arduino实现超声波测距(进阶篇—5)
随机推荐
Solve the problem of img 5px spacing
New product release: lr-link Lianrui launched the first 25g OCP 3.0 network card
bzoj3188 Upit
stream中文排序
Part II data link layer
BZOJ3189 : [Coci2011] Slika
How to Load Data from CSV (Data Preparation Part)
RANSAC extraction plane (matlab built-in function)
Application analysis of Poe image acquisition card in machine vision industrial computer
Analysis on the development history and market development status of China's system integration industry in 2020 [figure]
第一部分 物理层
JS performs non empty judgment on various data types of the returned data.
Common file functions
[Part 16] copyonwritearraylist source code analysis and application details [key]
Deriving Kalman filter from probability theory
Technical exchange | why should network security equipment use bypass function
How to manually send events exposed by SAP commerce cloud mock application using SAP kyma console
Realize the same length of tablayout subscript and text, and change the selected font size
One article to show you how to understand the harmonyos application on the shelves
The difference between VaR and let_ The difference between let and VaR