Introduction to Java

Lesson 1 of 20

Meet Java — the language running billions of devices — and follow your first program from source code to printed output.

The big picture

Why learn Java?

Java powers everything from Android apps to giant bank systems. One language, billions of devices.

Platform Independent

"Write Once, Run Anywhere" — Java bytecode runs on any device with a JVM.

Object-Oriented

Code is organized into classes and objects — like blueprints and houses.

Memory Safe

Automatic garbage collection cleans up unused memory for you.

Rich Ecosystem

A huge library ecosystem and community backs every Java project.

1991

Project Green

James Gosling starts the Green Project at Sun Microsystems.

1995

Java 1.0

Java is released publicly with the famous "Write Once, Run Anywhere" promise.

2004

Java 5.0

Generics, enums and for-each loops modernize the language.

2014

Java 8

Lambda expressions and Streams change how Java code is written.

2017

Java 9+

The module system arrives and releases become twice a year.