Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Platform Indepedent  RSS feed

 
Utkarsh Chowdhary
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!