A

Admin • 828.70K Points
Coach

Q. Which of the following is true for ArrayDeque?

  • (A) Allows null elements
  • (B) Thread-safe
  • (C) Does not allow null elements
  • (D) Maintains natural order
  • Correct Answer - Option(C)
  • Views: 11
  • Filed under category Java
  • Hashtags: Java Deque

Explanation by: Admin
ArrayDeque does not allow null elements to avoid ambiguity with poll() and peek().

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.