Java Reference
In-Depth Information
a. All elements of an array are of the same type.
b. Array subscripts must be integers.
c. Arrays cannot contain string references as elements.
d. Arrays cannot use strings as subscripts.
e. Parallel arrays must have equal length.
f. Two-dimensional arrays always have the same numbers of rows and
columns.
326
327
g. Two parallel arrays can be replaced by a two-dimensional array.
h. Elements of different columns in a two-dimensional array can have
different types.
΢΢Exercise R7.18. True or false?
a. A method cannot return a two-dimensional array.
b. A method can change the length of an array parameter.
c. A method can change the length of an array list that is passed as a
parameter.
d. An array list can hold values of any type.
΢T Exercise R7.19. Define the terms regression testing and test suite.
΢T Exercise R7.20. What is the debugging phenomenon known as cycling?
What can you do to avoid it?
Additional review exercises are available in WileyPLUS.
PROGRAMMING EXERCISES
΢ Exercise P7.1. Add the following methods to the Bank class:
Search WWH ::




Custom Search