All skills

Languages & Frameworks

Java

Overview

Java is a high-level, general-purpose, memory-safe, object-oriented programming language. It is intended to let programmers write once, run anywhere (WORA), meaning that compiled Java code can run on all platforms that support Java without the need to recompile. Java applications are usually compiled to bytecode that can run on any Java virtual machine (JVM) regardless of the underlying computer architecture. The syntax of Java is similar to C and C++, but has fewer low-level facilities than either of them. The Java runtime provides dynamic abilities usually unavailable in traditional compiled languages.

Read more

How it works

java
public class Main {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}

The flow

Step by step, from source to running.

  1. 1Write .java source
  2. 2javac compiles to bytecode (.class)
  3. 3JVM loads & JIT-compiles to native
  4. 4Runs on any OS with a JVM

Links

More in Languages & Frameworks