Is the JVM (Java Virtual Machine) platform dependent or platform independent? What is the advantage of using the JVM, and having Java be a translated language?
JVM translates bytecode into machine language
Every Java program is first compiled into an intermediate language called Java bytecode. JVM perform following tasks:
- JVM convert java bytecode into machine language code specific to machine.
- JVM execute machine language code
JVM is not machine independent, since it generate machine specific code and it is dependent on operating system.Java Interview Question