How Java Works
How Java Works
For most programming languages, a program is translated (compiled) into a machine-language program. Then,
the machine language program can be executed (or run).
But different computers, or machines, can have different instruction sets. Also, for example, integers may be
implemented in words with different sizes on different computers, so that integer overflow might happen differently.
So there are many ways in which the same program run on different computers could give different results.