What is the result of the following?
1: String [] names = {"A", "B", "C"}; 2: List<String> list = names.asList(); 3: list.set(0, "Z"); 4: System.out.println(names[0]);
C.
Arrays.asList(names) converts an array to an ArrayList uses.
There is no asList() method on an array instance.