Ask Question
27 March, 06:03

Which of the following correctly declares an ArrayList?

a. ArrayList‹ double› aList = new ArrayList‹ double› (10);

b. ArrayList‹ Double› aList = new ArrayList‹ Double› ();

c. ArrayList‹ Double› aList = new ArrayList‹ Double› (10);

+2
Answers (1)
  1. 27 March, 06:55
    0
    ArrayList‹ double› aList = new ArrayList‹ double› (10); correctly declares an ArrayList

    a. ArrayList‹ double› aList = new ArrayList‹ double› (10);

    Explanation:

    In programming language to store more value of same data type single or double dimensional array.

    For example if end user is store 25 value of same data type, he or she can't defined 25 variable and access is very hard in the programming languages.

    To avoid these of type situation end user use single or double dimensional array where can store 25 values.

    Singled dimensions each cell access by cell no,

    Double dimension each cell access by row no, cell no

    In above scenario it is defined as single dimensional array with 10 cells and data type is double.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which of the following correctly declares an ArrayList? a. ArrayList‹ double› aList = new ArrayList‹ double› ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers