Which options are true of the following code? (Choose all that apply.)
3: ______________<Integer> q = new LinkedList<>();
4: q.add(10);
5: q.add(12);
6: q.remove(1);
7: System.out.print(q);
A, D.
A LinkedList implements both List and Queue.
The List interface has a method to remove by index.
Since this method exists, Java does not autobox to call the other method.
Queue has only the remove by object method, so Java does autobox there.
Since the number 1 is not in the list, Java does not remove anything for the Queue.