Capgemini Interview Question

Why is java platform independent?

Interview Answer

Anonymous

Jun 1, 2023

In java .java file is compiled to .class file which is a byte code and this byte code can be run on any machine with the help of a JVM which is platform dependent.