What happens when pollFirst() is called on an empty LinkedList?
It returns null
It throws NoSuchElementException
It removes the last element
It removes the first element
This question is part of this quiz :