Domanda di colloquio di Cognizant

Why is java platform independent

Risposte di colloquio

Anonimo

5 mar 2019

When we compile your Java code then .class file is generated by javac compiler (byte code to be precise) these codes are readable by JVM and every operating system have its own JVM so JVM is platform dependent but due to JVM java language is become platform independent.

Anonimo

22 set 2016

Because of Bytecode.The bytecode generated by compiling the java class,we get the byte code .