Data Types & Variables
Operators & Expressions
Methods & APIs
Objects &
Classes
String Manipulation
100

This keyword declares a whole-number variable in Java.

What is int?

100

The result of 17 % 5 in Java.

What is 2?

100

A method that does not return a value has this return type.

What is void?

100

The keyword used to create a new object in Java.

What is new?

100

For a String s = "Hello", the value returned by s.length().

What is 5?

200

This primitive type stores true/false values.

What is boolean?

200

The result of 7 / 2 when both operands are int values.

What is 3?

200

The term for when multiple methods share the same name but have different parameter lists.

What is overloading?

200

A constructor's name must match this.

What is the name of its class?

200

For String s = "Jeopardy", s.substring(0,4) returns this value.

What is "Jeop"?

300

A variable of this type holds a memory address rather than a value directly.

What is a reference type?

300

This compound operator adds a value to a variable and stores the result: x ___ 5.

What is +=?

300

This Math class method returns a random double ≥ 0.0 and < 1.0.

What is Math.random()?

300

Calling an instance method on this special value causes a NullPointerException.

What is null?

300

This String method returns the index of the first occurrence of a given substring, or -1 if not found.

What is indexOf()?

400

The three types of primitives used in the AP CSA course.

What are int, double, and boolean?

400

Operator precedence means this group of operators is evaluated before addition and subtraction.

What are multiplication, division, and remainder ( *, /, % )?

400

An API specification does this for a programmer using a library class.

What is document/describe how to use the class (its attributes and behaviors)?

400

This relationship exists when every class in Java ultimately extends the Object class.

What is inheritance?

400

String objects in Java are described as this, meaning their content cannot change after creation.

What is immutable?

500

When an int expression exceeds Integer.MAX_VALUE, this phenomenon occurs.

What is integer overflow?

500

Casting a double to an int in Java causes this to happen to the decimal portion.

What is truncation (the digits are dropped, not rounded)?

500

This type of error is caught by the compiler before the program runs.

What is a syntax error?

500

The difference between a class method (static) and an instance method.

What is that class methods belong to the class itself while instance methods are called on an object?

500

Attempting to access an index outside the valid range of a String causes this exception.

What is StringIndexOutOfBoundsException?

M
e
n
u