Computer Science, asked by aditya7772, 6 months ago

Explain the term Compilation, Java Compilation Bytecode and Java Virtual Machine (JVM) in detail​

Answers

Answered by smartreeta13january1
2

Answer:

In Java, programs are not compiled into executable files; they are compiled into bytecode (as discussed earlier), which the JVM (Java Virtual Machine) then executes at runtime. Java source code is compiled into bytecode when we use the javac compiler. ... When the bytecode is run, it needs to be converted to machine code

Answered by Anonymous
1

Java is a high level programming language. Unlike other compilers, the Java compiler converts the source code into a format, which is neither dependent on a machine nor on a platform. It produces an intermediate code in a special format, called as the Java bytecode. This makes the Java program highly portable as its bytecodes can be easily transferred from one system to another. Further, the bytecode is converted into an executable machine code for a particular platform by Java Virtual machine (JVM) using the corresponding interpreter that can read the byte codes. The presence of JVM makes it possible for any Java application to run on any machine regardless of its platform and architecture.

Similar questions