Questions and CORRECT Answers
inheritance - CORRECT ANSWER - relationship between a subclass and its superclass,
the subclass is more specialized than the superclass
constructor - CORRECT ANSWER - a method that initializes a newly instantiated object
getter - CORRECT ANSWER - a method that gets parameters
setter - CORRECT ANSWER - a method that sets parameters
object - CORRECT ANSWER - a value of a class type (Rectangle box = new ractangle -->
rectangle is the Object)
reference - CORRECT ANSWER - a value that denotes the location of an object in
memory (Rectangle box = new Rectangle --> box is the reference to the object)
nested loops - CORRECT ANSWER - a loop that is contained within another loop
typecasting - CORRECT ANSWER - refers to changing an entity of one datatype into
another
condition - CORRECT ANSWER - a circumstance that must be met
overloading - CORRECT ANSWER - a method with the same name, but different
arguments
overriding - CORRECT ANSWER - redefining a method in a subclass
, compiler - CORRECT ANSWER - a program that translates code into machine language
base class - CORRECT ANSWER - a general class, from which a more specialized class
inherits
derived class - CORRECT ANSWER - a class that inherits variables and methods from a
superclass but adds instance variables, adds methods, or redefines methods
polymorphism - CORRECT ANSWER - selecting a method among several methods that
have the same name on the basis of the actual types of implicit parameters
ArrayList - CORRECT ANSWER - a class that implements a growable array of objects
String - CORRECT ANSWER - a sequence of characters
for-each-loop - CORRECT ANSWER - for (Type variable: collection){
Statement
}
do-while-loop - CORRECT ANSWER - do{
statement
}while(condition)
while loop - CORRECT ANSWER - while (condition)
do loop - CORRECT ANSWER - see do-while