This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Platform Indepedent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Platform Indepedent" Watch "Platform Indepedent" New topic

Platform Indepedent

Utkarsh Chowdhary

Joined: Feb 27, 2001
Posts: 6
Why Java is said to be platform independent while C & C++ is not when Java Complier & JVM is different for every OS .?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
That's the point, the JVM is handling the issues with the os, so I can write one set of code and it will work in ANY properly built JVM. It is my application code that is platform independant, not the JVM or JRE.

"JavaRanch, where the deer and the Certified play" - David O'Meara
jQuery in Action, 2nd edition
subject: Platform Indepedent