How Platform Independence Is Achieved In JAVA?


6 Answers

Anonymous Profile
Anonymous answered
When we compile the java class, it will be converted to bytecode as .class file. This file able to rn in any platform which have JVM installed in it. No need to compile again in the new platform.
Java says  " Compile Once-Run anywhere" as Platform Independence. Only the restriction is JVM should be installed in order to run the file.
Bruce Axtens Profile
Bruce Axtens answered
Java is platform independent by being an interpreted language and by having a standardized interpreter for each platform that Java runs on. The Java Virtual Machine, JVM, is unique to each hardware platform that it runs on. The JVM provides a standardized environment in which Java bytecodes are interpreted. The JVM takes on the responsibility of interacting with the hardware rather than forcing the Java programmer to write code specific to each hardware platform.
Alongbar Daimary Profile
Java is called Platform Independent Language for it can be execute at any operating system because of JVM.
Anonymous Profile
Anonymous answered
Each operating system implements a "virtual machine" software which runs the JAVA programming language.  Hence, a programmer only needs to code in the one language to be able to run on all the operating system platforms that implemented the JAVA virtual machine.
awanish tripathi Profile
Because we can execute java in any operating system.
It means java is both compiled and interpreted launguage.the bytecode can be easly execute on any operating system.and also this code can be use on internet from on place to another...hence java is plateform independent
Anonymous Profile
Anonymous answered
It is achieved in java as it satisfies all the 3 conditions for platform independence
o/s independent
compiler independent
execution independent

Answer Question