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

Published: 30 December 2017
on channel: 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.


On this page of the site you can watch the video online JAVA Tutorial for Beginners | How Java Virtual Machine works in JAVA with a duration of hours minute second in good quality, which was uploaded by the user Software Testing Step-by-Step 30 December 2017, share the link with friends and acquaintances, this video has already been watched 374 times on youtube and it was liked by 3 viewers. Enjoy your viewing!