Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Java bytecode and Kotlin bytecode

When we compile Kotlin source code, is it converted to Kotlin bytecode or Java bytecode only?

like image 457
HiPradeep Avatar asked Oct 27 '25 12:10

HiPradeep


1 Answers

Kotlin bytecodes and Java bytecodes use the same bytecode instruction set; namely JVM bytecodes as specified by the JVM specification.

However, there may be differences in the way that JVM bytecodes are used for the two languages. These may cause affect the output of a decompiler.

The other complicating factor is that on Android the JVM bytecodes will be converted to Android Davlik bytecodes or ART (native) code before execution.

like image 175
Stephen C Avatar answered Oct 29 '25 00:10

Stephen C



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!