Which of the following is true?

A) The retrieve() method of an iterator can only be called after isEmpty() has returned false
B) The remove() method of an iterator can only be called after next() has been called
C) Any iterator can move forward as well as backwards through a collection
D) Once an iterator has reached the end of the collection, calling any of its methods will throw a NoSuchElement exception


B) The remove() method of an iterator can only be called after next() has been called

Computer Science & Information Technology

You might also like to view...

Tokens are separated from one another by ____________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The equal sign in the expression Amount = 20 is an example of an operator.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

________ custom shows connect a main custom show to other custom shows

Fill in the blank(s) with correct word

Computer Science & Information Technology

A(n) ________ font is a font that does not have small lines at the end of letters

Fill in the blank(s) with correct word

Computer Science & Information Technology