How is Java platform independent?
Anonymous
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.
Check out your Company Bowl for anonymous work chats.