Given the code fragment:
What is the result?
A.
[Robb, Rick, Bran]
B.
[Robb, Rick]
C.
[Robb, Bran, Rick, Bran]
D.
An exception is thrown at runtime.
Given the code fragment:
What is the result?
A.
[Robb, Rick, Bran]
B.
[Robb, Rick]
C.
[Robb, Bran, Rick, Bran]
D.
An exception is thrown at runtime.
Anwser: A
boolean remove(Object o)
Removes the first occurrence of the specified element from this list, if it is present (optional operation).
https://docs.oracle.com/javase/8/docs/api/java/util/List.html
A