The ________ interface in Java provides a way to traverse, filter, and extract data.

  • Collection
  • Iterable
  • Iterator
  • Stream
The Iterable interface in Java provides a way to traverse (iterate over) a collection of elements. It allows you to loop through the elements and perform operations on them. While it doesn't provide built-in filtering or extraction like Streams, it serves as a foundation for working with collections.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *