How is Java platform independent?
Utilisateur anonyme
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.