Question 10. Assume that we have the class Airplane. A 3-by-4 two-dimensional ar
ID: 3718498 • Letter: Q
Question
Question 10.
Assume that we have the class Airplane. A 3-by-4 two-dimensional array of objects of the class Airplane is actually:
a. A 1 dimensional array of 3 elements where each element is a reference to an array of 4 references to Airplane objects
b. A 1 dimensional array of 3 objects where each object contains a data member that is a 1 dimensional array of 4 Airplane objects
c. A 1 dimensional array of 12 elements where each element is an
Airplane object
d. We cannot use 2-dimentional arrays in Java
Explanation / Answer
Answer: a. A 1 dimensional array of 3 elements where each element is a reference to an array of 4 references to Airplane objects
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.