In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Today, we will discuss the introduction of JDK vs JRE and JVM.
What is the Java Development Kit (JDK)?
JDK represents the Java Development Kit used to develop Java applet and applications. It is basically a software development environment. JDK includes the Java Runtime Environment (JRE), which happens to be a loader / interpreter, a compiler called (javac), a document generator (Javadoc), an archiver (jar), and other tools needed for development.
Load code
Verification code
Execute the code
Provide a runtime environment
What is the Java Runtime Environment (JRE)?
Java Runtime Environment or JRE is also known as Java RTE. The Java runtime environment contains core classes and support files; it also contains the Java virtual machine (JVM). It provides a runtime environment.
Determine the specific location where the Java virtual machine works. Nevertheless, the supplier is free to choose the calculation. Its use is provided by Sun and different organizations.
An implementation is a PC program that meets the specific prerequisites of JVM.
Whenever the runtime instance writes a Java command on the summoning exciter to run the Java class, it generates a JVM.
JDK or Java Development Kit is a physical presence toolkit. It contains JRE + and other tools.
What is a Java virtual machine (JVM)?
JVM provides a runtime environment for executing Java bytecode. It is a platform-dependent abstract machine with three concepts as specifications, a document describing JVM implementation requirements, an implementation, a computer program that meets JVM requirements, and an implementation that executes Java bytecode.
The main tasks of JVM are:
Load code
Verification code
Execute the code
Provide a runtime environment
The difference between JDK,JRE and JVM
Please consider the following picture.
JDK and JRE functions what does JRE include?
JRE includes the accompanying subdivisions.
Deployment technology-including scheduling, Java Web Start and Java Plug-in.
UI Toolkit-user interface includes Abstract window Toolkit (AWT), Swing,Java 2D, accessibility, image I / O, printing services, sound, DnD and information technology.
Integration library-it includes interface definition language (IDL), Java database connections (JDBC, remote method invocation (RMI), remote method invocation over Internet Inter-Orb protocol (RMI-IIOP)), Java naming and directory interface (JNDI), and scripts.
Other basic libraries include Global help, input / output (I / O), extension tools, Bean,Java Management extensions (JMX), Java Native Interface (JNI), mathematics, networking, coverage mechanisms, security, serialization and Java XML processing (XML JAXP).
Lang and util base libraries-it includes lang and util, management, formation, zip, tools, reflection, collections, concurrent utilities, Java Archive (JAR), Logging,Preferences API,Ref Objects and Regular Expressions.
Java virtual machine (JVM), including Java HotSpot client and server virtual machines.
What is the function of JRE?
Learn how the JRE function allows us to consider Java source records that are saved like Example.java. The record is merged into the arrangement of ByteCode, which is placed in the ".class" document. Here, it will be "Example.class".
Actions at run time:
ClassLoader of Java
The execution of the program required by the ClassLoader stack is critical for each class. It provides security by isolating the namespaces of the nearby record framework from those imported through the system. These records can be stacked from hard drives, systems, or different sources.
Java ByteCode Verifier
JVM places code through ByteCode Verifier, checks for formatting, and checks for illegal code. For example, illegal code is code that ignores object permissions or misuses pointers.
ByteCode Verifier ensures that the code keeps a specific JVM fast without compromising the respectability of the framework.
Java interpreter
At run time, the ByteCode is stacked by mediators, checked and kept running. The translator has two abilities:
Execute ByteCode
Dial the hidden device correctly
What is the function of JVM?
JVM becomes the appearance of JRE when the Java program is running. It is often referred to as the runtime interpreter. JVM-- to a large extent-helps to review internal implementation from JDK for software engineers who use libraries for their projects.
Conclusion
In this Java tutorial, we learned what JRE,JVM and JDK are. In addition, we explore the basic differences between JRE,JVM,JDK through examples. In addition, if you have any other questions, please feel free to ask in the comments section below.
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: 270
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.