aspose file tools*
The moose likes Beginning Java and the fly likes Platform Independency Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Platform Independency" Watch "Platform Independency" New topic
Author

Platform Independency

PRAVEEN M
Greenhorn

Joined: Aug 05, 2003
Posts: 5
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

Joined: Jul 08, 2003
Posts: 24184
    
  34

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 .


[Jess in Action][AskingGoodQuestions]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
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!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
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.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Platform Independency