Skip to main content

Why Java is platform independent language ?

Why Java is platform independent language ?

  • In compilation .java (source file) is converted into byte code.
  •  Extension of byte code file is .class file.
  • Byte code is executable format that is executed by JVM.
  • JRE provide necessary execution environment to JVM for execution.
  • That .class file executed by any operating system provided JRE so java is
    platform independent language

javac