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

Static vs Non Static Inner class

Understanding Static vs Non-Static Inner Classes in Java The Hidden Reference That Most Java Developers Never See One of the most misunderst...