Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About JVM

 
Deepak Yadav
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is always said that Java is Aritecture Netural, Java is platform independent but JVM we are using is Platform dependent Why???
Please clerify my answer..................
 
Campbell Ritchie
Sheriff
Pie
Posts: 48954
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is platform independent because the JVMs are platform specific.

Java bytecode is exactly the same, but what you need to run on Windows is different from Linux and that is different from Mac.
So the different JVMs take the same bytecode and run it for their machines.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where do you see the contradiction between Java being platform-independent and the JVM being platform-dependent?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic