Search

What is Platform Independence ? Are JVM’s Platform Independent ?



The ability to write and compile programs in  one platform (eg Windows) and can execute the same compiled object in any other supported platform (eg Linux) is called as Platform independence. Java is Platform Independent. I.e. We can write and compile java programs on windows machine and execute the classes on Linux machine. But JVM is not platform independent as it is specific to each platform run time environment.