Multiple choice

Which of the following methods are present in the queue interface?

  1. poll()

  2. search(o:Object)

  3. empty()

  4. exit()

  5. pop()

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

This is the correct choice. poll() method is present in queue interface and it returns and removes the head of the queue and returns null if empty.