Is Kotlin an extension of Java or is it it’s own s...
# announcements
w
Is Kotlin an extension of Java or is it it’s own separate language?
s
if you are asking if Kotlin is a superset of Java, no, it is not
e
it’s a completely separate language but shares the JVM and the std lib (to a point)
m
I'd say it's more that it can use the Java stdlib when you have to. You're generally better off using the Kotlin stdlib where possible, because of null safety etc.
e
agreed
c
It is also capable of being used on other runtimes than the JVM. #multiplatform kotlin can also run in the browser or Node with Kotlin/JS, and Kotlin/Native has its own custom runtime which allows it to run on iOS or create standalone executables