Frage im Vorstellungsgespräch bei Cognizant

Why is java platform independent

Antworten zu Vorstellungsgespräch

Anonym

5. März 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.

Anonym

22. Sept. 2016

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