• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

platform independency of java

 
rak shar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys
i want to know whether java is machine independent or OS independent.
Though we have different versions of JAVA runtime for different os's (linux, windows)
but suppose if i have 2 machines (say running Intel pIII 550) one having a windows os and the other having a linux os.
Will platform independency come into picture in this scenario or will it be the same output jre will interpret into in both the cases.
Say if i have 2 different processors (Intel & amd) with the same o/s (windows) .In this case will jre interpret the java byte code into 2 different types of machine language(processor being different)
Kindli can some 1 clarify whether java is processor independent or o/s independent
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java bytecode is machine-independent. The virtual machine used as the interpreter, however, is both machine-dependent and OS-dependent. Whoever maintains the VM code is the one who has to manage all the porting issues and such.
 
rak shar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Michael
Thanks for u r prompt reply. Just one more clarification. So can we say if we have a windows os on different machines (intel & amd) we will be having 2 different jre's or just 1 jre is available for 1 o/s & the o/s takes care how to communicate with the machine.
 
Jon Strayer
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rak shar:
Hi Michael
Thanks for u r prompt reply. Just one more clarification. So can we say if we have a windows os on different machines (intel & amd) we will be having 2 different jre's or just 1 jre is available for 1 o/s & the o/s takes care how to communicate with the machine.

One JRE.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic