Sunday, June 1, 2025

Collection Interface

 


From an Iterable by calling an Iterator method you can get an Iterator Object which has two key methods and one Optional Method (hasNext, next , Remove)



A sub Interface of Iterable is Collection Interface 
public interface Collection<E> extends Iterable<E> 


No comments:

Post a Comment

CompletableFuture

  Welcome back to  our concurrency series ! In our first discussion, we likely touched on the traditional models of threading. Today, we’re ...