Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the connections and differences between JVM, JRE and JDK

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces "What are the connections and differences between JVM, JRE and JDK". In daily operation, I believe many people have doubts about what are the connections and differences between JVM, JRE and JDK. Xiaobian consulted all kinds of materials and sorted out simple and easy to use operation methods. I hope to help you answer the doubts about "What are the connections and differences between JVM, JRE and JDK"! Next, please follow the small series to learn together!

Before we understand the relationship between the three, we must first understand that any language or software needs certain conditions to run, so here it is equivalent to the environment.

Java language development and operation, can not be separated from Java language running environment JRE. Without JRE support, the Java language cannot run. Of course, if you want to compile Java programs, or other development, JRE is not enough, then you need JDK.

In fact, JDK is JRE plus some common tools composed. JDK not only runs Java programs that have already been compiled, but also allows us to compile Java programs.

In the study we learned about Java Virtual Machine JVM. When we all know these three related nouns, we will think of such a problem. JDK, JVM and JRE, what's the difference between them? What's the connection?

Nouns are explained as follows:

JDK (Java Development Kit) is a product for Java developers and is the core of Java, including Java runtime environment JRE, Java tools and Java Foundation Library.

JRE (Java Runtime Environment) is a collection of environments necessary to run Java programs, including JVM standard implementations and Java core libraries.

JVM (Java Virtual Machine) is the core part of Java's cross-platform implementation, capable of running software programs written in Java language.

Perhaps the explanation of nouns is not very thorough, so let's take a look at the following picture:

To sum up, there are three points:

JDK=JRE+ Multiple Java development tools

JRE=JVM+ various libraries

The relationship between these three is a layer of nested relationship. JDK>JRE>JVM

At this point, the study of "What are the connections and differences between JVM, JRE and JDK" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report