https://kotlinlang.org logo
#android
Title
# android
s

Syniseth

06/04/2018, 1:38 AM
I.e. will Kotlin totally replace Java?
🚫 2
e

eliz

06/04/2018, 1:41 AM
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

Syniseth

06/04/2018, 1:44 AM
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

kaeawc

06/04/2018, 1:45 AM
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

Syniseth

06/04/2018, 1:45 AM
Tyvm
k

kaeawc

06/04/2018, 1:45 AM
For more about how Android runs JVM
good explanations there ^
u

ursus

06/04/2018, 3:15 AM
JVM is the "virtual cpu architecture" you are writing your program for, in C terms
g

gildor

06/04/2018, 4:54 AM
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

edwardwongtl

06/04/2018, 5:20 AM
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

gildor

06/04/2018, 9:08 AM
+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
3 Views