Is Kotlin an extension of Java or is it it’s own separate language?
s
Shawn
05/11/2020, 5:41 PM
if you are asking if Kotlin is a superset of Java, no, it is not
e
evanchooly
05/11/2020, 5:50 PM
it’s a completely separate language but shares the JVM and the std lib (to a point)
m
mathew murphy
05/11/2020, 5:51 PM
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
evanchooly
05/11/2020, 5:52 PM
agreed
c
Casey Brooks
05/11/2020, 5:54 PM
It is also capable of being used on other runtimes than the JVM. #C3PQML5NU 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