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.
Auf dieser Seite können Sie das Online-Video JAVA Tutorial for Beginners | How Java Virtual Machine works in JAVA mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Software Testing Step-by-Step 30 Dezember 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 374 Mal angesehen und es wurde von 3 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!