Solved

The Following Statement Creates an ArrayList Object

Question 45

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents