COMP 308 JAVA FOR PROGRAMMERS
PREPARATION GUIDE WITH TESTED QUESTIONS
AND ANSWERS
◉ abstract method.
Answer: a method with a name, parameter variable types, and
return type but without an implementation
◉ access specifier.
Answer: a reserved word that indicates the accessibility of a feature,
such as private or public
◉ accessor method.
Answer: a method that accesses an object but does not change it
◉ aggregation.
Answer: the has-a relationship between classes
◉ API.
Answer: Application Programming Interface
a code library for building programs
,◉ applet.
Answer: a graphical Java program that executes inside a web
browser
◉ argument.
Answer: a value supplied in a method call, or one of the values
combined by an operator
◉ array.
Answer: a collection of values of the same type which can be
accessed by an integer index
◉ ArrayList.
Answer: a Java class that implements a dynamically-growable array
of objects
◉ assignment.
Answer: placing a new value into a variable
◉ association.
, Answer: a relationship between classes in which one can navigate
from objects of one class to objects of the other class, usually by
following object references
◉ attribute.
Answer: a named property that an object is responsible for
maintaining
◉ binary operator.
Answer: an operator that takes two arguments, for example, the + in
x+y
◉ binary search.
Answer: a fast algorithm for finding a value in a sorted array;
narrows the search down to half of the array in every step
◉ bit.
Answer: binary digit; smallest unit of information, having two
possible values: 0 and 1
◉ black-box testing.
Answer: testing a method without knowing its implementation
PREPARATION GUIDE WITH TESTED QUESTIONS
AND ANSWERS
◉ abstract method.
Answer: a method with a name, parameter variable types, and
return type but without an implementation
◉ access specifier.
Answer: a reserved word that indicates the accessibility of a feature,
such as private or public
◉ accessor method.
Answer: a method that accesses an object but does not change it
◉ aggregation.
Answer: the has-a relationship between classes
◉ API.
Answer: Application Programming Interface
a code library for building programs
,◉ applet.
Answer: a graphical Java program that executes inside a web
browser
◉ argument.
Answer: a value supplied in a method call, or one of the values
combined by an operator
◉ array.
Answer: a collection of values of the same type which can be
accessed by an integer index
◉ ArrayList.
Answer: a Java class that implements a dynamically-growable array
of objects
◉ assignment.
Answer: placing a new value into a variable
◉ association.
, Answer: a relationship between classes in which one can navigate
from objects of one class to objects of the other class, usually by
following object references
◉ attribute.
Answer: a named property that an object is responsible for
maintaining
◉ binary operator.
Answer: an operator that takes two arguments, for example, the + in
x+y
◉ binary search.
Answer: a fast algorithm for finding a value in a sorted array;
narrows the search down to half of the array in every step
◉ bit.
Answer: binary digit; smallest unit of information, having two
possible values: 0 and 1
◉ black-box testing.
Answer: testing a method without knowing its implementation