Q35
How do you initialize an array in Java with specific values?
A.
int[] array = new int[5];
B.
int[] array = {1, 2, 3, 4, 5};
AnswerC.
int array[] = new int[5];
D.
int array[] = {1, 2, 3, 4, 5};
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board