Skip to main content

Java Internals

How Java Works?

The goal is to create an application (in other words, a simple program) that can function on various operating systems such as Linux, macOS, and Windows.

Sketch

Steps

  1. Create a Java program or source document.
  2. The compiler runs the program, checks for errors, and only allows compilation if everything will run correctly.
  3. The compiler generates the output code or bytecode, which can be interpreted and run on any device capable of running Java. The compiled bytecode is platform-independent.
  4. The bytecode can be executed on any device with JVM installed, including electronic gadgets and supercomputers.