Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ibthaj Mansour   on Aug 14 In Java Category.

  
Question Answered By: Djoser Massri   on Aug 14

a.. Iterators and enumeration are both used to traverse through any
collection.
Their job is to move through a sequence of objects (collection) and
select each object in that sequence without the client programmer knowing or
caring about the underlying structure of that sequence.

b.. The iterators provide to remove an element from the sequence
byt enumeration does not allow removal of elements from the sequence

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on what is difference between an iterator and Enumeration Or get search suggestion and latest updates.


Tagged: