1.

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
D. We cannot access the list returned using Arrays.asList()
Answer» D. We cannot access the list returned using Arrays.asList()


Discussion

No Comment Found