bytecode | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

bytecode

what is a byte code? dies it mean binary codes that are produced with java? java has interpreter, so why it need to compiling and binary codes(bytecode)?

7th Feb 2017, 4:28 PM
Seyed Ali Akbar Najafian
Seyed Ali Akbar Najafian - avatar
2 Answers
+ 7
Byte code is the machine language of the Java Virtual Machine. When you write code in Java language it is compiled to byte code which is executed/interpreted by the JVM. Inside the JVM there is a Just In Time compiler (JIT) which generates real machine code from byte code for better performance.
7th Feb 2017, 8:06 PM
Tamás Barta
Tamás Barta - avatar
+ 1
The extention of bytecode is . class
16th Feb 2017, 8:08 AM
Babu
Babu - avatar