Skip to content

Commit 5f0b7da

Browse files
committed
Some Left one concepts added to Basics
1 parent 81abc12 commit 5f0b7da

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Basics.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,22 @@ We also have following Loaders in **Initialization Phase** :-
7373

7474
![Working of JVM](https://github.com/ackwolver335/Java-Coder/assets/103741432/398fa016-97ad-4961-ab89-2680dad5c8b7)
7575

76+
### Java Native Interface
77+
78+
It is mainly used for interaction with the Native Method's Libraries and also provides native libraries(C/C++) required for the execution. It helps/enables **JVM** to call C/C++ *Libraries* and to be called by C/C++ *Libraries* which may be Hardware Dependent.
79+
80+
### Different B/W JDK,JRE and JVM
81+
82+
![Difference BW Components](https://github.com/ackwolver335/Java-Coder/assets/103741432/0b12e7e1-5e36-4966-a77b-45caa26134ad)
83+
84+
### Execution Engines
85+
86+
Execution engine executes the “.class” (bytecode). It reads the byte-code line by line, uses data and information present in various memory area and executes instructions. It can be classified into three parts:
87+
88+
- **Interpreter** : It interprets the bytecode line by line and then executes. The disadvantage here is that when one method is called multiple times, every time interpretation is required.
89+
- **Just-In-Time Compiler(JIT)** : It is used to increase the efficiency of an interpreter. It compiles the entire bytecode and changes it to native code so whenever the interpreter sees repeated method calls, JIT provides direct native code for that part so re-interpretation is not required, thus efficiency is improved.
90+
- **Garbage Collector**: It destroys un-referenced objects. For more on Garbage Collector, refer Garbage Collector.
91+
7692
### Different Memories of JVM
7793

7894
- **Method Area** ->> In this all the properties of a *Class* together by the *static* variables are stored, also each JVM have only one Method Area together by being a shared resource.

0 commit comments

Comments
 (0)