Pergunta de entrevista da empresa Cognizant

Why is java platform independent

Respostas da entrevista

Sigiloso

5 de mar. de 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.

Sigiloso

22 de set. de 2016

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