Java Vocabulary UPDATED ACTUAL Exam Questions and
CORRECT Answers
compiler - a program that translates code into machine language
base class - a general class, from which a more specialized class inherits
derived class - a class that inherits variables and methods from a superclass but adds instance
variables, adds methods, or redefines methods
polymorphism - selecting a method among several methods that have the same name on the basis
of the actual types of implicit parameters
ArrayList - a class that implements a growable array of objects
String - a sequence of characters
for-each-loop - for (Type variable: collection){
Statement
}
do-while-loop - do{
statement
}while(condition)
while loop - while (condition)
, do loop - see do-while
for loops - (initialization; condition; update)
infinite loops - loops that have no end
method - a sequence of statements that has a name, may have formal parameters, and may return
a value
parameter - an item of information that is specified to a method, when the method is called
Variable - a symbol in a program that identifies a storage location that can hold different values
Identifier - name of a variable, method or class
Interface - a type with no instance variables, only abstract methods and constants
Explicit - a parameter of a method other than the object on which the method is invoked. They
are enclosed by parenthesis
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
primitive types - a number type(int, double) or boolean
construction - setting an newly allocated object to an initial state
CORRECT Answers
compiler - a program that translates code into machine language
base class - a general class, from which a more specialized class inherits
derived class - a class that inherits variables and methods from a superclass but adds instance
variables, adds methods, or redefines methods
polymorphism - selecting a method among several methods that have the same name on the basis
of the actual types of implicit parameters
ArrayList - a class that implements a growable array of objects
String - a sequence of characters
for-each-loop - for (Type variable: collection){
Statement
}
do-while-loop - do{
statement
}while(condition)
while loop - while (condition)
, do loop - see do-while
for loops - (initialization; condition; update)
infinite loops - loops that have no end
method - a sequence of statements that has a name, may have formal parameters, and may return
a value
parameter - an item of information that is specified to a method, when the method is called
Variable - a symbol in a program that identifies a storage location that can hold different values
Identifier - name of a variable, method or class
Interface - a type with no instance variables, only abstract methods and constants
Explicit - a parameter of a method other than the object on which the method is invoked. They
are enclosed by parenthesis
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
primitive types - a number type(int, double) or boolean
construction - setting an newly allocated object to an initial state