0

Whyjava is known with the acronym "WORA" Write Once Run Anywhere since it needs IDE to run

22nd Nov 2019, 12:09 PM
sameer
sameer - avatar
4 Respostas
+ 1
Because of its platform independent byte code feature.. The IDE you use is for writing your programs.. that is .java files. It is compiled to .class file which is in the form of bytecode. This bytecode is executed can on any platform irrespective of the where you write from which means you can write from a windows platform for example, but you can execute it on any other platforms on which JRE enabled..(ex:Linux, unix,...). So you are writing only ones and able to run anywhere.. (hence WORA). Read javabuzz words, portable and independent features for more details.
22nd Nov 2019, 1:00 PM
Jayakrishna 🇮🇳
+ 1
Because just the 'player' of the code has to be system-specific, the program can remain just the same. So you could have a program on a usb-stick and run it on windows and mac without doing anything, as long as each system has downloaded their (version of the) runtime environment. In C, if you carry a program to another system, it won't run. You have to compile a separate version for that specific system.
22nd Nov 2019, 1:02 PM
HonFu
HonFu - avatar
+ 1
sameer for example you have a test.java file, now when you compile this it is converted to a bytecode which is test.class file. Now you can use this bytecode on any platform as HonFu and Jaya krishna mentioned. But always remember that you need a OS dependent JVM to run that test.class file.
22nd Nov 2019, 1:31 PM
Avinesh
Avinesh - avatar
0
IDE is not necessary
22nd Nov 2019, 6:26 PM
zemiak