Access Millions of academic & study documents

How java is platform independent

Content type
User Generated
Showing Page:
1/1
Previously, most of the programs written in any language have had to be recompiled or rewritten for
every other computer platform. Means, you have to either change your code or recompile it when
you change the platform (i.e. windows or UNIX or Mac OS etc).JAVA comes with its greatest
advantage that you only have to write and compile your code once. The Java on any platform will
interpret the compiled byte code (.class file) into instructions understandable by the particular
processor using either interpreter or JIT compiler.JVM uses both the interpreter and JIT compiler.
Note: JIT do not do code compilation but the byte code compilation to platform language
(Instruction set)
So we can say if we have JVM available for any platform, the onetime compiled code will work on it
using the WORA feature of Java i.e. Write Once Run Anywhere.

Sign up to view the full document!

lock_open Sign Up
Unformatted Attachment Preview
Previously, most of the programs written in any language have had to be recompiled or rewritten for every other computer platform. Means, you have to either change your code or recompile it when you change the platform (i.e. windows or UNIX or Mac OS etc).JAVA comes with its greatest advantage that ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4