前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >JAVA JVM JRE JDK

JAVA JVM JRE JDK

作者头像
平凡的学生族
发布2019-05-25 10:04:13
1.2K0
发布2019-05-25 10:04:13
举报
文章被收录于专栏:后端技术后端技术

https://stackoverflow.com/questions/11547458/what-is-the-difference-between-jvm-jdk-jre-openjdk

JVM是模仿计算机的java运行环境

http://www.geeksforgeeks.org/jvm-works-jvm-architecture/

JVM结构

It is mainly responsible for three activities.

  • Loading
  • Linking
  • Initialization

JRE 包含了 JVM, 和一些类库(util等)不包含debugger, compiler等

The Java Runtime Environment (JRE) provides the libraries, the Java Virtual Machine, and other components to run applets and applications written in the Java programming language.

i.e. JRE = JVM + Java Packages Classes(like util, math, lang, awt,swing etc)+runtime libraries.

Java Runtime Environment contains JVM, class libraries, and other supporting files. It does not contain any development tools such as compiler, debugger, etc.

JDK 是 JRE的超集

The JDK is a superset of the JRE, and contains everything that is in the JRE, plus tools such as the compilers and debuggers necessary for developing applets and applications.

Java Developer Kit contains tools needed to develop the Java programs, and JRE to run the programs. The tools include compiler (javac.exe), Java application launcher (java.exe), Appletviewer, etc…  Compiler converts java code into byte code. Java application launcher opens a JRE, loads the class, and invokes its main method.  You need JDK, if at all you want to write your own programs, and to compile them. For running java programs, JRE is sufficient.

先有Object还是Class

https://www.zhihu.com/question/30301819

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2017.11.27 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • JVM是模仿计算机的java运行环境
  • JRE 包含了 JVM, 和一些类库(util等)不包含debugger, compiler等
  • JDK 是 JRE的超集
  • 先有Object还是Class
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档