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()
The question was asked in an interview for job.
My question is taken from Data Structures-List in division java.util – The Collections Framework of Java