answers 2024
double - A Java reserved word that represents a primitive floating point numeric
type, stored using 64 bits in IEEE 754 format. Ex. 4.23
int - A java reserved word for a primitive dat type, stored using 32 bits in two's
complement format. Ex. 5
boolean - A Java reserved word for a logical primitive data type that can only take
the values "True" or "False".
string literal - A primitive value used in a program.
Ex. ("Hello")
casting - Most general form of converting in Java
Ex. dollars = (int) money
narrowing conversion - A conversion from one data type into another in which
information could be lost. Converting from "double" to an "int" is a narrowing
conversion
, AP Computer Science Exam questions and
answers 2024
strongly typed - Assigned values must correspond to the declared type.
// - Comments a line of code in Java that will not be run with the program. More
of a side note.
//Hello
% - Remainder operator.
Operator Precedence Hierarchy - The order in which operators are evaluated in an
expression.
primitive data - Characters with letters, or numbers: int, double, booleans
constant - A value that cannot be changed. Used to make more code more
readable and to make changes easier. Defined in Java using the "final" modifier.
final - A Java reserved word that is a modifier for classes, methods, and variables.
A "final" variable is a constant