What’s the Target Platform of Kotlin? How is Kotlin-Java interoperability possible? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 17

What’s the Target Platform of Kotlin? How is Kotlin-Java interoperability possible?

13th Jun 2019, 1:51 AM
Sabiry 🇦🇫
Sabiry 🇦🇫 - avatar
2 Answers
+ 5
There are rules you must follow to go from one to the other. The JVM code supports a lot of things neither language use so to call Kotlin code from Java it must be coded like Java.
19th Jun 2019, 4:50 PM
John Wells
John Wells - avatar
+ 2
Kotlin used to be mostly for Android, but now you can develop for many more platforms. Kotlin and Java both run on JVM and compile to bytecode, so it doesn't make that big of a difference whether it's Java class or Kotlin class.
13th Jun 2019, 5:29 AM
BlazingMagpie
BlazingMagpie - avatar