public static void search(List list) {  list.clear();  list.add(”b”);  list.add(”a”);  list.add(”c”);  System.out.println(Collections.binarySearch(list, “a”));  }  What is the result of calling search with a valid List implementation?()A、0B、1C、aD、bE、cF、T

题目

public static void search(List list) {  list.clear();  list.add(”b”);  list.add(”a”);  list.add(”c”);  System.out.println(Collections.binarySearch(list, “a”));  }  What is the result of calling search with a valid List implementation?()

  • A、0
  • B、1
  • C、a
  • D、b
  • E、c
  • F、The result is undefined.

相似考题