Multiple Choice
A new class is proposed to collect information about a group of DVDs. A separate class containing information about a single DVD, named DVD, has already been created. Which of the following is the best design to store the data and size of this collection?
A) Have an ArrayList of DVDs and use its size as the size of the collection.
B) Have an ArrayList of DVDs and an integer representing the number of DVDs in the collection.
C) Have an array of DVDs and use its size as the size of the collection.
D) Have a single DVD variable representing the last DVD added and an integer representing the number of DVDs in the collection.
Correct Answer:

Verified
Correct Answer:
Verified
Q19: Which of the following statements describes one
Q20: If the Math class has been imported
Q21: Under which of the following conditions can
Q22: Consider the following code snippet: public class
Q24: Which of the following classifications of method
Q25: Which of the following describes an immutable
Q26: Judging by the name of the method,
Q27: What is the scope of a private
Q28: Consider the method in the following code
Q71: Which of the following statements is generally