Multiple Choice
The following statement creates an ArrayList object. What is the purpose of the <String> notation? ArrayList<String> arr = new ArrayList<String>() ;
A) It specifies that only String objects may be stored in the ArrayList object.
B) It specifies that the get method will return only String objects.
C) It specifies that String objects may not be stored in the ArrayList object.
D) It specifies that everything stored in the ArrayList object will be converted to a String.
Correct Answer:

Verified
Correct Answer:
Verified
Q2: Once an array is created, its size
Q22: Declaring an array reference variable does not
Q45: A search algorithm:<br>A) is a way to
Q46: You can use this ArrayList class method
Q49: If numbers is a two-dimensional array, which
Q51: You can use this ArrayList class method
Q52: What will be the result of executing
Q53: What do you normally use with a
Q54: Which of the statements are true about
Q55: Subscript numbering always starts at what value?<br>A)