Vidyalelo
Java Programming · Q117

Java Collections Framework

Programming · Java Programming · question 117

Q117

How is Arrays.asList() different than the standard way of initialising List?

A.
Both are same
B.
Arrays.asList() throws compilation error
C.
Arrays.asList() returns a fixed length list and doesn't allow to add or remove elements
Answer
D.
We cannot access the list returned using Arrays.asList()

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board