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!

Adopt-A-Pet

Apply what you've learned about variables, expressions, and assignments to create a virtual pet

AP CSA 30-Week Lecture Series

A 30 week lectures series to prepare for the AP CSA exam.

Topics 1.1 to 1.4

Intro to algorithms and programming, including variables, expressions, assignment, input and output.

Learning Java Has Never Been Easier

Videos to get you started

Java Primitive Data Types Explained (int, double, boolean, and char)

This video introduces primitive data types—the built-in types used to store simple values like numbers, characters, and true/false.

Intro to Reference Data Types: The Next Big Step

Take the next step beyond primitives by learning about reference data in Java.

Java Variable Names: Rules, Conventions, and Best Practices

This video covers the official rules Java enforces (what characters you can use, where names can start, and which words are reserved) plus common naming conventions like camelCase.

Java Arithmetic Operators: +, -, *, /, and % Explained

Discover how to use operators such as addition (+), subtraction (-), multiplication (*), division (/), and remainder(%) to work with numeric values.