Skip to content

Commit 307cc51

Browse files
committed
added jvm,jre,jdk
1 parent 0bc0666 commit 307cc51

File tree

3 files changed

+97
-6
lines changed

3 files changed

+97
-6
lines changed

.idea/workspace.xml

+29-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

JVM_JRE_JDK.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
### JVM
2+
3+
JVM (Java Virtual Machine) is an abstract machine. It is called a virtual machine because it doesn't physically exist. It is a specification that provides a runtime environment in which Java bytecode can be executed. It can also run those programs which are written in other languages and compiled to Java bytecode.
4+
5+
JVMs are available for many hardware and software platforms. JVM, JRE, and JDK are platform dependent because the configuration of each OS is different from each other. However, Java is platform independent. There are three notions of the JVM: specification, implementation, and instance.
6+
7+
The JVM performs the following main tasks:
8+
9+
Loads code
10+
Verifies code
11+
Executes code
12+
Provides runtime environment
13+
14+
15+
--------
16+
17+
### JRE
18+
19+
JRE is an acronym for Java Runtime Environment. It is also written as Java RTE. The Java Runtime Environment is a set of software tools which are used for developing Java applications. It is used to provide the runtime environment. It is the implementation of JVM. It physically exists. It contains a set of libraries + other files that JVM uses at runtime.
20+
21+
The implementation of JVM is also actively released by other companies besides Sun Micro Systems.
22+
23+
![JRE](https://static.javatpoint.com/images/jre2.png)
24+
25+
-----------
26+
27+
### JDK
28+
29+
JDK is an acronym for Java Development Kit. The Java Development Kit (JDK) is a software development environment which is used to develop Java applications and applets. It physically exists. It contains JRE + development tools.
30+
31+
JDK is an implementation of any one of the below given Java Platforms released by Oracle Corporation:
32+
33+
Standard Edition Java Platform
34+
Enterprise Edition Java Platform
35+
Micro Edition Java Platform
36+
37+
The JDK contains a private Java Virtual Machine (JVM) and a few other resources such as an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (Javadoc), etc. to complete the development of a Java Application.
38+
39+
![JDK](https://static.javatpoint.com/images/jdk2.png)
40+
41+
--------
42+

internal_program.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
### What happens at compile time?
2+
3+
-------
4+
5+
At compile time, java file is compiled by Java Compiler (It does not interact with OS) and converts the java code into bytecode.
6+
7+
![Complier](https://static.javatpoint.com/images/core/javacodecompile.png)
8+
9+
---------
10+
11+
### What happens at runtime?
12+
13+
--------
14+
15+
At runtime, following steps are performed:
16+
17+
![phases](https://static.javatpoint.com/images/java-runtime-processing.png)
18+
19+
#### Classloader:
20+
is the subsystem of JVM that is used to load class files.
21+
#### Bytecode Verifier:
22+
checks the code fragments for illegal code that can violate access right to objects.
23+
#### Interpreter:
24+
read bytecode stream then execute the instructions.
25+
-------
26+

0 commit comments

Comments
 (0)