Skip to content

Java basics: classes, main, and output

Handout

AP Computer Science A uses Java

  • The AP CSA exam is written in Java.
  • Java is strict: every program lives inside a class, and starts from a method called main.
  • You already think like a programmer — here we learn Java's rules.

A Java program: a class holds a main method, which holds the statements that run

Handout

Log in or create account

IGCSE & A-Level