+ 7

is JVM can run other Programming languages ???

i have an doubts : JVM stand for java Virtual machine .. and it's created to convert java code into machine code ... my question is . can we run other Programming languages on JDK (JVM) ?🥱🤔

19th Sep 2021, 10:43 AM
Saurya
Saurya - avatar
6 Antworten
+ 7
Niththish is JVM can convert other language code into byte code ?
19th Sep 2021, 10:51 AM
Saurya
Saurya - avatar
+ 7
Niththish what about Kotlin 🙄
19th Sep 2021, 10:55 AM
Saurya
Saurya - avatar
+ 5
Niththish chalo koi na bhai mujhe hi jyada sochna padega lagta h 🧐🧐
19th Sep 2021, 11:02 AM
Saurya
Saurya - avatar
+ 5
jvm just do execution no compiling or transpiling. It can run products of compilers of java, kotlin, scala, some version of python and ruby, ... https://en.m.wikipedia.org/wiki/List_of_JVM_languages
19th Sep 2021, 11:18 AM
zemiak
+ 2
Since Kotlin code is converted into bytecode they require jvm to run
19th Sep 2021, 11:00 AM
Niththish
Niththish - avatar
+ 1
The key is the native language of the JVM: the Java bytecode. Any language can be compiled into bytecode which the JVM understands - all you need for this is a compiler emitting bytecode. From then on, there is no difference from the JVM's point of view. So much so that you can take a compiled Scala, Clojure, Jython etc. class file and decompile it (using e.g. JAD) into normal looking Java source code.
19th Sep 2021, 1:54 PM
Arun Jamson
Arun Jamson - avatar