Cognizant Interview Question

Why is java platform independent

Interview Answers

Anonymous

Mar 5, 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.

Anonymous

Sep 22, 2016

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