JAVA is Platform Independent Language
Is JAVA Platform Independent Language?
YES JAVA is Platform Independent language
What do you mean by platform Independent Language?
Language which supported by all operating systems.
Machine understands only machine code which contains only 0's & 1's.
But programmer writes code in higher language like java which is similar to the English which is not understand by machine so at this place we need compiler which translate higher level language to executable code. This executable code will be machine code or intermediate code which is interpreted by a virtual machine. In java this intermediate code is JAVA Byte Code.
Execution Steps:
Previous Page Next PageYES JAVA is Platform Independent language
What do you mean by platform Independent Language?
Language which supported by all operating systems.
Machine understands only machine code which contains only 0's & 1's.
But programmer writes code in higher language like java which is similar to the English which is not understand by machine so at this place we need compiler which translate higher level language to executable code. This executable code will be machine code or intermediate code which is interpreted by a virtual machine. In java this intermediate code is JAVA Byte Code.
Execution Steps:
- Program is written in java which is source code.
- JAVA compiler compiles that file in .class file which is bytecode.
- The bytecode is a non-executable code.
- JVM is used to execute on a machine.
- Finally we get output.
0 Comments