Collections and Generics

© examsiri.com
Question : 27 of 53
 
Marks: +1, -0
Given:
1. public static void search(List list) {
2.   list.clear();
3.   list.add("b");
4.   list.add("a");
5.   list.add("c");
6.   System.out.println(Collections.binarySearch(list, "a"));
7. }

What is the result of calling search with a valid List implementation?
Go to Question: