Why Java is Plateform Independent, How java achieve the platform independency
Before knowing "why Java is Platform independent" we should know about the term "Platform Independence".
Any of the program which is written in any of the programming language can be execute on any other machine whether the first machine and second machine has totally different Hardware and Software like Processor and Operating System without re-compile it, is called Platform Independence.
Now come on to the topic Java is Compiled and Interpreted Language means a java program's compilation and execution happen in two stages first we need to compile it with the help of "javac" compiler and after compilation the java source code compile into the .class file and the java .class file can be executed on any of the other machine with the help of java interpreter which is "java" and the one condition is applied the Java Virtual Machine (JVM) should be there into that machine.
Before knowing "why Java is Platform independent" we should know about the term "Platform Independence".
Any of the program which is written in any of the programming language can be execute on any other machine whether the first machine and second machine has totally different Hardware and Software like Processor and Operating System without re-compile it, is called Platform Independence.
Now come on to the topic Java is Compiled and Interpreted Language means a java program's compilation and execution happen in two stages first we need to compile it with the help of "javac" compiler and after compilation the java source code compile into the .class file and the java .class file can be executed on any of the other machine with the help of java interpreter which is "java" and the one condition is applied the Java Virtual Machine (JVM) should be there into that machine.
{ 0 comments... read them below or add one }
Post a Comment