Examveda

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: Option C


This Question Belongs to Java Program >> Collections Framework In Java

Join The Discussion

Related Questions on Collections Framework in java