Untitled Document
Untitled Document
The Java Collections Framework (JCF) helps store and manage groups of objects easily. It
provides different ways to organize data.
2.What is an Iterator ?
An Iterator is an object that can be used to loop through collections, like ArrayList and
HashSet.
"Loop through" means going through each item in a collection one by one, usually using a
loop. This process is also called iteration.
Definition of HashMap
A HashMap in Java is a data structure that stores key-value pairs. It allows fast retrieval,
insertion, and deletion of elements.
Working process