Get startedGet started for free

Fill in the class

In Java, classes are the fundamental building blocks that organize your code. Think of them as containers that hold related functionality together. Every Java program you write will use at least one class!

This exercise is part of the course

Introduction to Java

View Course

Exercise instructions

  • Create a class called HelloClass.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

// Create a class called HelloClass
____ ____ {
    public static void main(String[] args) {
        System.out.println("I can do classes in Java now!");
    }
}
Edit and Run Code