2. Which of the following statements are true?I. ArrayLists cannot be used in situations where the number of elements never changes.II. ArrayLists are useful in si... 展开
2. Which of the following statements are true?I. ArrayLists cannot be used in situations where the number of elements never changes.II. ArrayLists are useful in situations where the number of elements stored is likely to change over time.III. The size of an Arraylist can never exceed its initial capacity.A. I onlyB. II onlyC. III onlyD. II and III onlyE. I, II, and III3. Which of the following code fragments successfully reverses the order of the elements in the ArrayList t?I. 收起