Vidyalelo
Java Programming · Q24

Java Collections Framework

Programming · Java Programming · question 24

Q24

What is the purpose of the `Iterator` interface in the Java Collections Framework?

A.
It defines a comparison function for ordering elements
B.
It represents a synchronized collection
C.
It provides methods for hashing elements
D.
It provides a way to iterate over a collection's elements
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board