DEV Community

[Comment from a deleted post]
Collapse
 
thorstenhirsch profile image
Thorsten Hirsch

Why is there a difference for "Compilation" in the "Kotlin vs Java" table? It says "Virtual machine" for Kotlin and "Bytecode" for Java, but they both run on the Java Virtual Machine (JVM), which executes bytecode.

I also don't see much of a difference when it comes to other runtime options. Kotlin/Android is pretty much the same as Kotlin/JVM. Native compilation is available for both languages. There's probably no pendant in the Java world for Kotlin/JS, but I guess that's also a niche in the Kotlin world.

I'd also argue that Java has introduced some aspects of functional programming, e.g. lambdas on the language level and streams in the JDK, which encourage the use immutability.

Collapse
 
levirs565 profile image
Levi Rizki Saputra

I agree with you.