[JAVA rookie] ask questions about other languages in the JAVA virtual machine

questions are as follows:

clipboard.png

Among the

options, D
different programming languages can run normally on the JAVA virtual machine as long as legitimate class files are compiled.
is that right? I think it"s incredible

.

can I write a python or Cmursharp, which can also run on the JAVA virtual machine?

Apr.02,2021

jvm runs bytecode . This is language-independent, similar to binary machine code , but only machine code executed by the virtual machine.

so any language can be run on the java virtual machine as long as it can be compiled into legal jvm bytecode.
the existing
scala,kotlin,java can be compiled into bytecode, so they can all run

in the java virtual machine.
Menu