A

Admin • 833.24K Points
Coach

Q. Which method in Deque is considered fail-fast if structure is modified concurrently?

  • (A) iterator()
  • (B) peek()
  • (C) add()
  • (D) offer()
  • Correct Answer - Option(A)
  • Views: 36
  • Filed under category Java
  • Hashtags: Java Deque

Explanation by: Admin

Iterators returned by Deque implementations like ArrayDeque are fail-fast.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.