Discussion Locked

Java

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Why java is platform Independent?

5 replies

by realgem

The platform-specifics are hidden under the language, sort like the meat in a sandwich. Java is the top layer of bread.

by tcarrico

Well, I am not a fan of JAVA, nor do I consider myself an expert on it. I will try and explain my understanding of it.

If you question is "what makes it platform independent" the answer is the JVM (Java Virtual Machine), and Byte code. JAVA is compiled into Byte code, and the JVM runs the "code". Each platform that is to "host" JAVA has a JVM written for it. The JVM provides a "Translator" between the generic Byte code and the Operating system.

If you question is "Why did SUN make it platform independent" then you would have to ask them. I am sure they had several reasons.

tc

This discussion is closed to new replies.