JAVA Tutorial for Beginners | How Java Virtual Machine works in JAVA

Publié le: 30 décembre 2017
sur la chaîne: Software Testing Step-by-Step
374
3

How Java Virtual Machine works in JAVA,JAVA Tutorial for Beginners | How Java Virtual Machine works in JAVA
Java is a high level programming Language
High level language can not directly runs on any machine without any support.
It should translated into a particular machine learning language.
In Java javac compiler does the same.
Compiler check .java files and translates it to machine code that is .class files

It resides in real machine example : Laptop
Machine Language is byte Code
JVM execute the byte code generated by the compiler
And produce the Output
It is the one which makes Java platform Independent.
JAVA Tutorial for Beginners.
JVM Architecture

Class Loader : loads .class file and save the byte code in the method area.
Method Area: Method area in a JVM which is shared among all the classes, class level information of each .class file.
Heap: Heap is a part of JVM memory where objects are allocated.
Stack: Is also a part of JVM memory ,it is used for storing temporary variables.
PC Registers: Keeps the track of which instruction has been executed & which is going to be executed.
Native Method stack: A native method can access the runtime data areas of the virtual machine.
Native Method interface: Which enables java code to call by native applications.
Garbage collection: A class instance is explicitly created by the java code and after use it is automatically destroyed by garbage collection for memory management.


Sur cette page du site, vous pouvez voir la vidéo en ligne JAVA Tutorial for Beginners | How Java Virtual Machine works in JAVA durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Software Testing Step-by-Step 30 décembre 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 374 fois et il a aimé 3 téléspectateurs. Bon visionnage!