what is the relation between bytecode,JVM,and source code
Answers
Answered by
9
java compiler converts the source code into bytecode.
Bytecode is a kind of average machine language.
Once a Java program has been converted to bytecode, it can be transferred across a network and executed by Java Virtual Machine (JVM).
Bytecode is a kind of average machine language.
Once a Java program has been converted to bytecode, it can be transferred across a network and executed by Java Virtual Machine (JVM).
Answered by
4
JVM is an abstract machine designed to be implemented on top of existing processors .
It helps to convert the given code in JAVA to bytecode and then we can intrepret the code for a given platform by using an interpreter .
This interpreter is called JVM .
The full form of JVM is Java Virtual Machine .
The code is first written in .java .
Then converted to bytecode and then .exe by the JVM .
It is platform independent .
It hides the operating system from JAVA application .
Similar questions