What is JVM (java virtual machine)
- JVM stands for Java Virtual machine.
- It takes byte code as input and gives binary as output.
- JVM is platform dependent but makes java as platform-independent
- JVM has interpreter and JTT in it
- JVM physically does not exist.
Why java is platform-independent?
- JVM makes java as platform Independent but JVM is platform Dependent.
- Source File is converted into class File /Byte code /intermediate file with the help of the compiler
- Class Files can be executed in any platform which has JVM.
- JVM is java virtusal machine which is present in the java runtime environment (JRE)
- In JVM there is a JIT compiler which takes a class file as input and interpreted into binary file as Output.
0 comments:
If you have any doubts,please let me know