If you want to add an array in ArrayList then which method of ArrayList will be used?

Options
- AddRange
- Add
- AddArray
- None of the above


CORRECT ANSWER : AddRange

Discussion Board
Reason for why AddRange is correct

As we want to add an array to the Arraylist , so we must have a set of values in the senseof an array which means we would have values in a particular range and that range can contain arrray elements.
So, answer is AddRange.

Thank you.

Sowmya 09-20-2020 10:14 AM

If you want to add an array in ArrayList then which method of ArrayList will be used?

What is Correct Answer if
Answer is : AddRange

test 10-1-2014 04:45 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement