Multiple choice

Which of the following is NOT a method of the 'Linked List' class?

  1. Add First ()

  2. Remove Last ()

  3. Remove At ()

  4. Add Last ()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Java's LinkedList class has addFirst(), addLast(), and removeLast() methods, but does NOT have a removeAt() method. To remove an element at a specific index, you would use the remove(int index) method instead, not removeAt().