Java is Platform Independent.

Why Java is Platform Independent?


  • C compile prgms are PD (Platform dependent
  • Java compile prgms are PI  (Platform Independent)

Common technologies used in programming are:-

Platform Independent

How Java achieved Platform Independent ?

By moving machine language generation from compilation phase to execution phase by introducing Byte code and JVM
Byte code is native language of JVM ,it is intermediate code for all OS.
JVM is a Java platform ,it is a translator s/w that converts byte code into current OS machine language , execute and display output.
JVM s/w is available and given by SUN for all OS, so the program compiled in one can be executed in any other OS.
Platform Inpendent Diagram
Platform Inpendent Diagram

Leave a Comment

Your email address will not be published. Required fields are marked *