OK. So, JAVA is said to be platform independent since it generates Bytecode on compilation. There is a JVM for each platform which avoids the need for having a JAVA compiler for each platform. Does that not indicate that the effort saved in writing Java compilers for each platform was spent in writing JVMs for each platform?
Software/Hardware used:
JVM
ASKED:
October 30, 2010 3:01 PM
UPDATED:
November 3, 2010 2:33 AM
“Does that not indicate that the effort saved in writing Java compilers for each platform was spent in writing JVMs for each platform?”
Maybe, but, do you think that the reason they did things that way was because they wanted to save the effort of writing compilers ?
Does that not indicate that the effort saved in writing Java compilers for each platform was spent in writing JVMs for each platform?
Not much more so than for any language interpreter or compiler that can be run on different platforms. A COBOL compiler was written for AS/400s and another was written for Windows 2000.
One big difference is that a certified JVM is practically guaranteed to allow a java program to run the same on an AS/400 as it does on W2k. Or on z/OS. Or on Ubuntu Linux.
ILE COBOL isn’t likely even to compile under Micro Focus COBOL, and COBOL has been “standardized” a lot longer than JVMs.
Tom