Multiple Choice
What does <String> specify in the following statement?
ArrayList<String> nameList = new ArrayList<String>() ;
A) It specifies that String objects may not be stored in the ArrayList object.
B) It specifies that everything stored in the ArrayList object will be converted to a String object.
C) It specifies that only String objects may be stored in the ArrayList object.
D) It specifies that the ArrayList will be converted into a String array.
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Java does not limit the number of
Q30: Java provides a mechanism known as _,
Q32: You use this method to determine the
Q33: To return an array of long values
Q34: What will be the result of the
Q37: Given the following two-dimensional array declaration, which
Q38: Which of the statements are true about
Q39: This method returns a string representing all
Q40: The Java compiler does not display an
Q61: The String [ ] args parameter in