What is the result of the following?
import java.util.*; public class Main { public static void main(String[] args) { String[] array = {"A", "B", "Art"}; List<String> v = Arrays.asList(array); v.remove(2); // w w w.j a v a2 s. com System.out.println(v); } } ?
D.
When converting an array to a List, Java uses a fixed-sized backed list.
The list uses an array in the implementation.
While changing elements to new values is allowed, adding and removing elements is not.