subject

Consider writing a program that reads the lines of any text file into a sequential list of lines. Which of the following is a good reason to implement the list with an ArrayList of String objects rather than an array of String objects?

(A) The get and set methods of the ArrayList are mire convenient than the [] notation for arrays.
(B) The size method of ArrayList provides instant access to the length of the list.
(C) An ArrayList can contain objects of any type, which leads to greater generality.
(D) If any particular text file is unexpectedly long, the ArrayList will automatically be resized. The array, by contrast, may go out of bounds.
(C) The String methods are easier to us with an ArrayList than with an array.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:00
Which action describes an aspect of technological design?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What part of the interface displays the external references contained in a selected cell? the status bar the review tab the scroll bar the formula bar
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What is the function of compilers and interpreters? how does a compiler differ from an interpreter?
Answers: 2
You know the right answer?
Consider writing a program that reads the lines of any text file into a sequential list of lines. Wh...
Questions
question
Chemistry, 03.08.2019 07:30
question
Biology, 03.08.2019 07:30
question
Mathematics, 03.08.2019 07:30
question
Mathematics, 03.08.2019 07:30
Questions on the website: 13722363