A Admin • 830.13K Points Coach Q. What exception does `element()` throw if the queue is empty? (A) IllegalArgumentException (B) NullPointerException (C) IllegalStateException (D) NoSuchElementException Correct Answer - Option(D) Views: 19 Filed under category Java Hashtags: Java Queue Share Manage Tags
Discusssion
Login to discuss.