0

Does Java uses compiler or interpreter as its translator

Java programming

15th May 2018, 6:48 AM
Oseloka Onyeabo Chukwuma
Oseloka Onyeabo Chukwuma - avatar
4 Respostas
+ 3
I am no expert on Java but I read a things on compiler design and I say the source code is translated to a intermediate code or byte code then this code is executed by the interpreter. I maybe wrong but I think that how it works.
15th May 2018, 8:56 AM
Ben
Ben - avatar
+ 1
Java gets compiled to byte code, which is interpreted by the JVM, but when available and enabled, the byte code will be compiled to native machine code at runtime by the JIT compiler and will not be interpreted by the JVM.
15th May 2018, 9:41 AM
aklex
aklex - avatar