Your program needs to store a sequence of integers of unknown length. Which of the following is most suitable to use?
A) An array declared as int[] marks;
B) A array list declared as ArrayList<Integer> marks = new ArrayList<Integer>() ;
C) An array declared as int marks[10000];
D) An array declared as int marks[10];
Correct Answer:
Verified
Q48: Consider the following 2-dimensional array. Select the
Q54: Which one of the following is the
Q63: Consider the following code snippet: ArrayList<Integer> arrList
Q65: What is the result of the following
Q66: Consider the following code snippet:
Public static void
Q67: Consider the following line of code for
Q70: What is the value of the cnt
Q73: Consider the following code snippet: ArrayList<Double> somedata
Q73: Which one of the following statements is
Q74: What is the value of myArray[1][2] after
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents