Platform independent means -- Compiled Java Code runs in all the platforms having JVM(Java Runtime Machine). JVM is the one which runs the compiled Java Code.
2006-09-11 00:07:52
·
answer #1
·
answered by Santosh 2
·
0⤊
0⤋
Platform Independent in Java means that - Programs written in Java can be run anywhere irrespective of the platform which means either windows or Linux or any other platform.
Understand more clearly, Java achieves this in two ways
Any program written in Java is first Compiled where it is converted from Unicode to Binary Code
The binary-code thus formed is stored into an intermediate file with the extension ".class" . This file provides the feature of platform Independence which isn't provided by any other language other that java [ except for JAVA and the latest .NET which works much on the lines of JAVA ]
The binary code is thus transferable to any system or any place in the world irrespective of the platform on which it is compiled but that platform should Java a JAVA run time installed as a plug in for the .class file to run on that platform.
:-) Hope this satisfies your question :-)
2006-09-11 07:02:46
·
answer #2
·
answered by Anonymous
·
0⤊
0⤋
If you are using Java, you can use any Operating System to develop the Java program. After developing a Java program you'll have to compile that into the bytecode which will be in the form of a class file.
Now think you have developed a program in Windows platform and you compiled the Java program into byte code (a .class file will be generated once you compile a java program)
Now you are taking that .class file loading that into a linux machine (the linux machine must have Java Development Kit in it) it will work without any modifications.
But if you are working on a C++/C progam then that is not the case. Once you compil a C/C++ program it will generate a .EXE file (If you are in windows platform). You can't execute an EXE file that has been generated in Windows. In other words you have to compile the program in the linux machine then it will generate the output file for the same.
2006-09-11 06:57:40
·
answer #3
·
answered by Jayaprakash V 2
·
0⤊
0⤋
Platform independent in java means that one can use anny editor except microsoft word, to write ur java codes....does not need any platforn to run....every thing u need is just Java Development Kit.....More ur code can run into any Os
2006-09-11 06:54:13
·
answer #4
·
answered by himanshu n 1
·
0⤊
0⤋
Actually, platform independent means that code you write inside windows, or any other operating system, will run on any operating system. write code inside windows and it will work just fine under linux, bsd, mac, anything
2006-09-11 06:55:44
·
answer #5
·
answered by drillsgtthorpe 2
·
0⤊
0⤋