I.e. will Kotlin totally replace Java?
# android
s
I.e. will Kotlin totally replace Java?
🚫 2
e
You’d fair much better with a good understanding of Java. After all, it’s still running in the JVM and you’ll likely still want to pull in and use a few libraries written in Java.
s
Okay awesome to hear that because I already bought a Udemy Java android course. What exactly is the JVM? Is it like the Java equivalent of the Python interpreter? I'm coming from a Python background.
k
JVM is the Java Virtual Machine, which is what Java bytecode runs on. Kotlin is capable of compiling to Java bytecode, which it why it can run on the JVM.
👍 1
s
Tyvm
k
For more about how Android runs JVM
good explanations there ^
u
JVM is the "virtual cpu architecture" you are writing your program for, in C terms
g
For more about how Android runs JVM
Android doesn’t run JVM. Android uses Dalvik VM and ART, but Android toolchain based on JVM classfiles (result of Java/Kotlin-JVM compilation)
e
I think the reason here for Java should not be about the JVM, it should be the fact that Android is written in Java, so every core api you find is Java, not to mention even the support library is mostly in Java as well.
g
+1 to @edwardwongtl This is more about API rather that about runtime, at least it’s more important for common developer. But to be honest, Android Runtime is accurate implementation of most of practical Java and JVM API standards, including sun.misc.Unsafe etc. And this is the reason of Oracle vs Google lawsuit