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()
How is Arrays.asList() different than the standard way of initialising List?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
How is Arrays.asList() different than the standard way of initialising List?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!