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
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.
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