• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java virtual machine

 
Gopalakrishnan Rangaswamy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why jvm is called a virtual machine and not by someother name.
why can't be a same jvm be made available for all the OSs.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi gopal!
JVM is called JavaVirtual Machine because it doesnot exist physically.it is a virtual thing which perfoms some action.thats why it is named virtual machine.
and about your next question..why cont they put some other name.
my answer is why cont they put this name only for it,because "virtual machime" well siuts the functionality it is perfoming.
 
senthil rajan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually JVM acts as a interface between your program and the operating system. JVM interacts with the operating system functionalities, and the functionalities differ in operating systems. So that we can't have same JVM for all operating system.
 
Rick O'Shay
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be impossible to have one JVM for all operating systems because the JVM relies on operating system calls to provide many of the facilities which Java programs use. Java programs should run on any operating system but since each one is dramatically different, you need a JVM specific to each operating system. The JVM exposes a consistent interface to Java programs but it has to adapt those services to the actualy operating system underneath. Moreover the CPU instruction sets vary wildly so if nothing else you would have to compile Java to a form specific to each CPU.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic