A

Admin • 831.35K Points
Coach

Q. Which operation removes the last element, blocking if necessary?

  • (A) pollLast()
  • (B) removeLast()
  • (C) takeLast()
  • (D) pop()
  • Correct Answer - Option(C)
  • Views: 16
  • Filed under category Java
  • Hashtags: Java Deque

Explanation by: Admin
takeLast() is a blocking method that waits if the deque is empty.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.