Unit 2 Vocabulary Flashcards
Any text that is enclosed in double quotes
String literal
A data type that uses a small amount of memory to represent a single item of data
Primitive
A data type that stores a whole number, positive or negative, or zero
int
A data type that stores a positive or negative number including floating-point values
double
A data type that stores either true or false
boolean
Java keyword used to indicate that the value of the variable cannot be changed once it is initialized
final
A special kind of integer division that returns the remainder instead of the quotient
Modulus division
Represented by the = symbol, takes the result of the expression on the right and assigns it to the variable on the left
Assignment operator
Occurs when an expression evaluates to an int value outside of the allowed range
Integer overflow error
The formal implementation, or blueprint, of the attributes and behaviors of an object that the objects of its type support
Class
A specific instance of a class with defined attributes
Object
The data of an object that will constitute the state of an object
Attribute
Defines the behavior of an object that is performed on an object’s data
Method
The act of creating an object of a class for use in a program
Instantiation
A specific realization of an object
Instance
Java reserved word that is used to create an object
new