Java Vocabulary
condition
a circumstance that must be met
collaborators
a class on which another class depends
wrapper classes
a class that contains a primitive type value, such as an integer
ArrayList
a class that implements a growable array of objects
derived class
a class that inherits variables and methods from a superclass but adds instance variables, adds methods, or redefines methods
inner class
a class that is defined inside another class
arrays
a collection of values of the same type stored in contiguous nenory locations
postconditions
a condition that is true after a method has been called
preconditions
a condition that must be true when a method is called if the method is to work correctly
base class
a general class, from which a more specialized class inherits
access specifier
a keyword that indicates the accessibility of a feature, such as private or public
nested loops
a loop that is contained within another loop
accessor method
a method that accesses an object but does not change it
mutator method
a method that changes the state of the object
getter
a method that gets parameters
constructor
a method that initializes a newly instantiated object
setter
a method that sets parameters
overloading
a method with the same name, but different arguments
primitive types
a number type(int, double) or boolean
Explicit
a parameter of a method other than the object on which the method is invoked. They are enclosed by parenthesis
compiler
a program that translates code into machine language
String
a sequence of characters
method
a sequence of statements that has a name, may have formal parameters, and may return a value
simple statement
a statement consisting of only an expression
compound statement
a statement such as if or while that is made up of several parts such as a condition and a body
operator
a symbol denoting a mathematical or logical operation
Variable
a symbol in a program that identifies a storage location that can hold different values
Interface
a type with no instance variables, only abstract methods and constants
object
a value of a class type (Rectangle box = new ractangle --> rectangle is the Object)
reference
a value that denotes the location of an object in memory
reference
a value that denotes the location of an object in memory (Rectangle box = new Rectangle --> box is the reference to the object)
object reference
a value that denotes the location of the object in memory
instance
a variable defined in a class for which every object of the class has its own value
side effects
an effect of a method other than returning a value
parameter
an item of information that is specified to a method, when the method is called
element
assigned to values data (ex. Data[0])
auto-boxing
automatically converting a primitive type value into a wrapper type object
immutable
cannot be changed
for loops
(initialization; condition; update)
aggregation
the has-a relationship between classes
Implicit
the object on which a method is invoked. For example, in the call x.f(y), the object x is the implicit parameter of method f
scope
the part of the program in which a variable is defined
while loop
while (condition)
polymorphism
selecting a method among several methods that have the same name on the basis of the actual types of implicit parameters
construction
setting an newly allocated object to an initial state
return type
such as double or void
has-a
denotes that objects of one class contain references to objects of another class
do-while-loop
do{ statement }while(condition)
for-each-loop
for (Type variable: collection){ Statement }
encapsulation
hiding of implementation details
is-a
inheritance relationship
hierarchies
lol he didnt give a definition
infinite loops
loops that have no end
Identifier
name of a variable, method or class
dependency
one class needs services provided by another class
overriding
redefining a method in a subclass
typecasting
refers to changing an entity of one datatype into another
inheritance
relationship between a subclass and its superclass, the subclass is more specialized than the superclass
do loop
see do-while
