A java program uses a compiler as well as interpreter? Why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

A java program uses a compiler as well as interpreter? Why?

1st Jul 2020, 3:46 PM
Arya Deep Chowdhury
Arya Deep Chowdhury - avatar
1 Answer
+ 12
A java compiler converts the code into a byte code which is independent to be run anywhere but an interpreter is needed to run the program in specific systems like Linux , Unix , windows OS etc An interpreter converts the byte code into a machine level code after then the code is ready to run in systems. I hope you understand
1st Jul 2020, 3:52 PM
Piyush
Piyush - avatar