I’ve been wondering why do some languages, such as Java run on Both Linux with little or no modification of the code, but other languages you have to nearly re-write all the code. Why is this? Because of the Kernel?
Sorry if this is a simple question but, I really don’t have much of a clue.
Also, what’s the difference between cpu architecture in terms of Linux.
Technically you are wrong.
Java does not run on Linux. It also does not run on Windows. It does not run on Mac either, nor any other Unix like operating system. For that matter, it does not run on any operating system.
It runs directly on the machine. It only works on one type of machine – the Java Virtual Machine. Fortunately, the Java Virtual Machine has been virtualized onto Linux, Windows, Mac, etc.