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!

Superclass and Subclass Hierarchy

Identifying superclass and subclass attributes and behaviors

Create Objects with Constructors

Identify constructor signatures and use these to create an object of a class

Create Objects and Call Instance Methods

Create objects and call instance methods

Learning Java Has Never Been Easier

Videos to get you started

AP CSA in 30 Weeks(2026) | Week 3 | Topics 1.7 and 1.8 | Java Libraries, APIs and Comments

In this week’s lecture, we cover AP CSA Topics 1.7 and 1.8, focusing on APIs, libraries, and documentation.

AP CSA in 30 Weeks (2026) | Week 4 | Calling Methods in the Math Class | Topics 1.9 - 1.11

In this week’s lecture, we cover AP CSA Topics 1.9 to 1.11 on calling methods and using the Math class.

Instance Methods vs. Class Methods in Java

In this video, we explore class methods and how they are used to perform tasks that don't depend on a specific object!

Episode 1 | Making Abstract Concepts Concrete | Procedural Abstraction

We're exploring procedural abstraction by creating method boxes! Discover how methods can accept input values, perform an operation, and return a result without requiring us to understand the code that makes them work.