![]() ![]() We will be able to target as many as platforms which makes use of Java Virtual Machine.Īs we know kotlin key feature is supporting Multiplatform, we code once common kotlin code and we compile it to platform specific code. This library contains the definitions of kotlin own standard library classes and extensions that kotlin adds to java API’s. ![]() We need Java Virtual Machine to execute that code and when the execution happens, JVM will translate the byte code into platform specific application code.īut code compiled with kotlin compiler depends on Kotlin Runtime Library. Many class files and resources will be packaged into single file for distribution.Īll those files will be in byte code format which can be run on any java virtual machine and this archive format is cross platform. They are built on the ZIP format and have a. Jar means java archive which includes Java-specific manifest file. Later we will get to know more about byte code.Īll those. class files will be generated.Ĭompiled file will be changed from Hello.kt to HelloKt.class So let’s just say we have hello world functions as our source code in those files. We have both kotlin and java comparing along top and bottom.īoth Hello.kt and Hello.java files have source code which needs to get compiled. ![]() Keep referring to image above and step numbers to the bottom of the image. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |