Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JVM platform independent or platform dependant?

 
Shruthi Sam
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
My doubt is about the JVM, which is used to run a program. Is JVM platform dependant? are we using different JVM's for different OS? Please clarify.
 
Maneesh Godbole
Saloon Keeper
Posts: 11092
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JVM is platform dependent.
JVM for Windows and say Windows for Linux will be different. The JVM acts as an interface/layer between your code and the OS.
That is why your code becomes platform independent.
 
Shruthi Sam
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic