Advanced Placement Computer Science A focusing on Java programming and object-oriented design.
Java is a powerful, versatile, and widely-used programming language. As a beginner, you'll use Java to learn the basics of programming, including how to write, compile, and run your first programs.
Every Java program is made up of:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
This simple program prints a message to the screen. It shows the structure of a Java program: a class, a main method, and a statement.
Learning Java opens doors to building apps for Android, enterprise systems, and even games. The basics you learn now will help you in any programming language.
Writing a program to calculate the average of three test scores.
Creating a simple calculator that adds two numbers input by the user.
Java is a popular, object-oriented programming language; mastering its basics is the first step to becoming a computer scientist.