Core Java Tutorials


Introduction

Java Hello World

Java Compilation

JDK New Features

JVM Architecture

Java OOPs Concepts

Java Package

Array

Exception Handling

String

Immutable Class

File Handling

Serialization

MultiThreading

Volatile

Concurrent Package

Collection

Collection Internal

Generics

Cloning

Reflection In Java

Annotation

Class Loader

Java Inner classes

Garbage Collector

JDBC

References In Java

Heap Dump & Thread Dump

Java Compilation


Java Execution Flow Detail

  Java Compilation is process which converts java source code into java byte code by the java compiler. Further java byte code is interpreted by the JVM interpreter as shown below image.

java-compilation-flow


 Why Java is platform independent?

In Java, source code is converted into java byte code(intermediate code ) . Byte code is highly optimized form of instructions and which does not dependent on any platform or operating system language. So java byte code can be converted into platform specific language at runtime by JVM interpreter. That's why java is platform independent just because of java byte code. refer the same in below picture.

byte-code-platform-independent
Read more