Popular Google Pages:
◕ Bengali Story writing competition. More..
This article is regarding Why Java is a Machine Independent Program?
Last updated on: 25th November 2016.
◕ What is Machine Independent Program?
The Java is a Machine Independent Program. This means that the same Java Code can run on any computer or on any operating system like windows, Linux or a Sun Solaris workstation. Only requirement is that the Java has to be installed in that computer. This is one of the reason that Java is so popular.
For the other languages, we have to change the code to run on different operating systems or on different platforms. But Java is above this situation. Same Java code can run on all different operating systems or on different platforms. As a result we can save our lot of time and tension.
◕ Why and how Java is a Machine Independent Program?
The Java is a Machine Independent Program, because the Java Compiler converts the Java source code into a binary program, Bytecodes. What is this bytecodes? Bytecodes are the machine instructions for the Java Vartual Machine (JVM).
Because the Java program consists of Bytecodes rather than native machine instructions, it is completely insulated from the particular hardware on which it is running. And as every machine understands the Bytecodes hence Java can run on every machine which consists Java Compiler.
Related Java article:
What is Java? Where we can apply Java?
Top of the page