Computer Science, asked by Sarim666, 4 months ago

Why Java converts source code to bytecode instead of converting source code directly to machine code?

Note : if you will answer this question correctly I will give you 7 thanx and I will follow you​

Answers

Answered by Shaikhhumaira2587
0

Answer:

The Java compiler (javac) converts the source code into bytecode. Bytecode is a kind of average machine language. This bytecode file (. class file) can be run on any operating system by using the Java interpreter (java) for that platform.

Compiled languages have to go through a compiler before they are executed. The compiler converts the program into machine code so that it can be understood by the computer.

Answered by Anonymous
4

Answer

The Java compiler (javac) converts the source cde into bytecde. Under ideal conditions, virtual machine language programs run closer in speed to compiled language programs but have the platform indepency of interpreted language programs. Virtual machine languages makes use of both a compiler and an interpreter

hope it is helpful to you

Mark me as brainlist

Similar questions