Saturday, June 14, 2014

What is a JVM ?

JVM java virtual machine

What ?

intepreter - accepts byte code, and executes it

Why ?

platform independent
compile once- run anywhere (in theory)

compiler produces bytecode - its optimized and is executable by JVM

why bytecode ?

so  we have a a different jvm for each hardware/ os platform it will run the bytecode on the platform

so although its platform independent , java still needs a JVM - virtual machine for each system it runs on


No comments:

Post a Comment