Question 26 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 26 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given the code fragment:

public static void main(string[] args) {
List<String> names = new ArrayList<>();
names. add ("Robb") 7
names. add ("Bran")
names. add ("Rick") ;
names. add ("Bran");

if (names. remove ("Bran")) {
names. remove ("Jon") +

d
System. out. print1n (names) ;

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.