Ch. 9 Flashcards
Object
A collection of related data that comes with a set of methods that operate on the data
Primitive
A data type that stores a single value and provides no methods
Immutable
An object that, once created, cannot be changed. Strings are immutable by design
Wrapper class
Classes in java.lang that provide classes and methods for dealing with primitive types
Parse
To read a String and interpret or translate it
Empty Array
An array with no elements and a length of 0
Design Process
A process for determining what methods a class or program should have
Encapsulate
To wrap data inside of an object, or to wrap statements inside of a method
Generalize
To replace something unnecessarily specific (like a constant) with something appropriately general (like a variable or parameter)