ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

What is the difference between Enumeration and Iterator?


Enumeration doesn't have a remove() method

Iterator has a remove() method

Enumeration acts as Read-only interface, because it has the methods only to traverse and fetch the objects

Can be abstract, final, native, static, or synchronized

Note: So Enumeration is used whenever we want to make Collection objects as Read-only.

Related Posts Plugin for WordPress, Blogger...
Flag Counter