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