+ 1

How java is platform independent?

Without using JVM how can I run a java code on a system.....

1st Jun 2024, 4:56 AM
Soyam Kapasiya
Soyam Kapasiya - avatar
3 Respuestas
1st Jun 2024, 5:41 AM
Junior
Junior - avatar
+ 3
You can compile Java to a native executable with GraalVM, but then it will not be platform independent any more, and will not require the JVM.
1st Jun 2024, 7:05 AM
Tibor Santa
Tibor Santa - avatar
+ 1
java designed to work on virtual machines so the same file/s can run on any system. JVM is just a virtual machine for java, i assume you asking how to avoid using any VM and execute instructions directly on CPU for increasing performance i guessing, right?
1st Jun 2024, 11:51 AM
john ds
john ds - avatar