user3201263
user3201263

Reputation: 15

Is the java byte code independent of CPU or independent of OS?

I am confused about the in-dependability of the java byte code,I see some where that is said the java byte code is independent of the cpu and the architecture of that, but some times I see that is said it is independent of the platform(Windows,Linux,etc). which one is true? I think they are not the same, because a system with one type of cpu can have different platforms,am I right?

can we say that if we have the same attributes of (for exmaple) Linux(the same platform), but on different cpu architectures on different systems,should we use different JVM?

please help me about this issue thanks in advance for your answers.

Upvotes: 1

Views: 535

Answers (1)

Pokechu22
Pokechu22

Reputation: 5046

It's independent of both. As long as there is a JVM for that OS and CPU architecture, it can run java Bytecode.

Upvotes: 3

Related Questions