Java SE 8 Programmer 1Z0–808 Practice Full Test 1

© examsiri.com
Question : 16 of 84
 
Marks: +1, -0
Given the code: public static void main(String[] args) {
  List names = new ArrayList<>();
  names.add("Robb");
  names.add("Bran");
  names.add("Rick");
  names.add("Bran");
  if (names.remove("Bran")) {
    names.remove("Jon");
  }
  System.out.println(names);
}

What is the result?
Go to Question: