Hello Jeanne Boyarsky, Whats the difference in the Java application that makes use of Unix or Windows operating system? Can the same Java application work on two different OS?
A java application, once written and tested can be run on both a UNIX and Windows operating system. You do not have to alter the code for it to work for different environments.
There are some caveats to that. it is certainly possible to write some java code that IS system dependent, but this usually means you've used some non-standard classes/packages.
You can also write your java to make system calls (i.e. call a program that the OS runs... i.e. on windows, you could call 'dir' to list the files) which would not work across platforms.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Originally posted by bobby reddy: ...Can the same Java application work on two different OS? ...
Absolutely. This is the idea behind compile once and run anywhere.
The thing is: The different platforms must be running their own (OS-specific) Java Virtual Machine (JVM). This is what allows the same compiled bytecode to run on different platforms. As pointed out, JVMs can run on Windows, Mac, Linux...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
for examples: Delphi not run in all operation system. Today he give support there are some system as a unix. Java run independent of the plataform that you use. can be unix, mac, windows. not is necessary move one line of the code for this.