Solved

What Does the Following Statement Do? Int[] List = {5

Question 20

Multiple Choice

What does the following statement do? int[] list = {5, 10, 15, 20};


A) It adds 4 int values to the array list.
B) It initializes list to have 20 int values.
C) It initializes list to have 4 int values.
D) It declares list but does not initialize it.
E) It causes a syntax error because it does not include new int[4] prior to the list of values.

Correct Answer:

verifed

Verified

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

Related Questions