This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Platform Independency

 
PRAVEEN M
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is called as a platform Independent language, as when compiled it generates a class file which is in byte code. What is this byte code, what is the importance of this bytecode? And if by using this technique one can implement platform independency, why it is not getting implemented for all languages?
Can any one please clear my doubts....
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To run a Java program, you need a JVM -- a "Java Virtual Machine". This is basically a simulation of an imaginary computer. The "machine language" of this imaginary computer is Java bytecode. This lets the same program -- the same bytecode -- run on any real computer for which a JVM has been implemented.
It's actually an old technique, and has been implemented for many other languages. The newest version is Microsoft's CLI, Common Language Interface (Infrastructure?), the core of .NET .
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PRAVEEN M,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy. (Note that a single character last name is generally not enough.)
Thanks Pardner! Hope to see you 'round the Ranch!
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is also interesting to note that the bytecode interpreted by the Java Virtual Machine can be produced by languages other than Java. See here for instance.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic