Tuesday, 17 March 2015

Q. Is JVM platform independent or dependent?

Ans: JVM is platform dependent.Every  OS  e.g Macintosh, windows or Linux etc. has different JVMs.Java compiller converts the java source file into .class file which is nothing but Byte code or intermediate code which is understood by JVM.Now, JVM  converts the byte code into machine code which is platform specific. Hence,JVM is platform dependent.

No comments:

Post a Comment