Tuesday 15 October 2013

Session 2:Why Java Is Platform Independent ??

  • In this fig you can see how to convert .java to .class file. When we write java program it' must be save by  .java extension. Example its name like Demo.Java .when we compile Demo.java file by using JavaC(compiler) its convert to appropriate Demo.class is called as Byte Code File.Byte code file doesn't understand by any of machine or user so we must have to convert .class file to appropriate machine level language.JVM Does this responsibility. JVM convert .Class file to appropriate machine level language and than user can see the output existing program.  
  • That's Why Java is platform independent but Byte code Code is platform dependent. 

No comments:

Post a Comment