Skip Top Navigation Bar

The Destination for Beginners, Students, and Teachers of Java

Try out Modern Java Now

The Java Playground allows you to run snippets of program code to see the results. The way the Java Playground works, no class or main method is required. Just hit run below!

Recently Updated

Been here before? Looking for something new to learn? Try these!

Interpreting the API

Interpret class documentation in the API.

Writing Comments

Interpret class documentation in the API.

Experiment with Casting

Evaluate and write expressions with casting in Java.

Learning Java Has Never Been Easier

Videos to get you started

AP CSA in 30 Weeks(2026): Week 1 - Topics 1.1 to 1.4

In this first lecture, we cover AP CSA Topics 1.1 to 1.4, building the foundation you'll need as you begin your AP Computer Science A journey.

Introducing Java Records (with Duke)

Meet Java Records—a clean, modern way to model simple data in Java with far less boilerplate than a traditional class.

Java Enums Explained: What They Are and How to Create Them

In this video, you’ll get a beginner-friendly introduction to enums in Java. We’ll break down what an enum is and when you should use one in your code.

Java Console Input & Output Explained (Using the IO Class)

In this video, you’ll learn how to handle console input and output in Java using the IO class.