9 AnswersNew Answer
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
Since Kotlin code is converted into bytecode they require jvm to run
Niththish is JVM can convert other language code into byte code ?
No. I think it won't and can't.
Niththish what about Kotlin 🙄
Niththish chalo koi na bhai mujhe hi jyada sochna padega lagta h 🧐🧐
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.
Yes you can JVM runs any files that are converted into java byte code So if you want to run other languages on jvm firstly you have to convert it into java byte code The .class file is know as the java byte code which you will be getting after compiling your code.