Question d’entretien chez TECHNIA

How is Java platform independent?

Réponse à la question d'entretien

Utilisateur anonyme

3 juin 2017

Java is not a platform dependent but the JVM is dependent on the platform.so we will find various jvm for different OS like Windows,Mac. So a source code of java compiled in a windows machine can be run in a mac machine because when the source code is migrated to a different platform and compiled its jvm will generate the byte codes according to the platform .so byte codes generated by windows jvm is different from that of mac jvm.