JFC (Java Collections Framework) provides an architecture to store and manipulate the group of objects. it can perform several tasks.
-Searching
-Sorting
-Inserting
-Deletion
-Filter
-Duplicate, etc.
Collection represents a single unit of objects i.e a group
Collection basic type.
-MAP
-SET
-LIST
-QUEUE
Frequently used collection are MAP and LIST.
MAP, SET, LIST and QUEUE which are the Interface that have several methods which implementations algorithm.
Iterator Interface in Java
Iterator inteface provides the facility of iterating the elements in forward direction only.
Methods of Iteratoe inteface
-public boolean hasNext() - chech the element has or not
-public object next() - move th elements
-public void remove() - remove the element
No comments:
Post a Comment