Significance of JVM in java
Answers
Answered by
5
Role of JVM in Java
JVM stands for java virtual machine which is abstract or virtual computing machine is the implementation of java virtual machine specification. It interprets the compiled java code know s as the byte code and helps in program execution depending upon the specific platform.
Java is platform independent language i.e. it can run on any platform without rewriting the code. This feature is supported by JVM.
Each JVM has:
point1.A Instruction set
point2.A stack
point3.A garbage collected heap
pont 4.Method area
point5.A set of registers
point6.An execution environment
Basically JVM is set of computer programs and data structures that run compiled byte code on any machine making java “compile once, run anywhere” language.
JVM is virtual, because the environment in which it runs byte code is such that it remains separated from the OS and can be removed or installed without affecting it.
JVM converts the byte code into machine or platform specific code and then runs it.
Steps in JVM implementation:
point1. Loads the class file.
point2. Check whether .class file has the required byte code
point 3. Interprets the byte code and convert them into machine specific code
point 4. Removes useless objects and do garbage collection
hope it helps you and please mark as
brainlist
hvgp:
mark as brainlist
Answered by
2
Hi
ur answer is attachment in image..
ur answer is attachment in image..
Attachments:
Similar questions