This keyword declares a whole-number variable in Java.
What is int?
The result of 17 % 5 in Java.
What is 2?
A method that does not return a value has this return type.
What is void?
The keyword used to create a new object in Java.
What is new?
For a String s = "Hello", the value returned by s.length().
What is 5?
This primitive type stores true/false values.
What is boolean?
The result of 7 / 2 when both operands are int values.
What is 3?
The term for when multiple methods share the same name but have different parameter lists.
What is overloading?
A constructor's name must match this.
What is the name of its class?
For String s = "Jeopardy", s.substring(0,4) returns this value.
What is "Jeop"?
A variable of this type holds a memory address rather than a value directly.
What is a reference type?
This compound operator adds a value to a variable and stores the result: x ___ 5.
What is +=?
This Math class method returns a random double ≥ 0.0 and < 1.0.
What is Math.random()?
Calling an instance method on this special value causes a NullPointerException.
What is null?
This String method returns the index of the first occurrence of a given substring, or -1 if not found.
What is indexOf()?
The three types of primitives used in the AP CSA course.
What are int, double, and boolean?
Operator precedence means this group of operators is evaluated before addition and subtraction.
What are multiplication, division, and remainder ( *, /, % )?
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)?
This relationship exists when every class in Java ultimately extends the Object class.
What is inheritance?
String objects in Java are described as this, meaning their content cannot change after creation.
What is immutable?
When an int expression exceeds Integer.MAX_VALUE, this phenomenon occurs.
What is integer overflow?
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)?
This type of error is caught by the compiler before the program runs.
What is a syntax error?
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?
Attempting to access an index outside the valid range of a String causes this exception.
What is StringIndexOutOfBoundsException?