What is the difference between Enumeration and Iteration
interfaces? What is the way of to retreive the objects from
these interfaces ?
Answer Posted / suma
1.Enumeration interface applicable legacy implemented classes.
Iterator is applicable for all collection implemented classes.
2.Enumeration :While iterating the elements we are not
allowed to remove the objects just we can perform only read
operation
Iterator:While iterating we can perform removal also in
addition to read operation
3. Enumeration uses elements() method ,
Iterator uses iterator() method
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
how can we create the ui using netbeans,having the code?
What is class path in java?
What is a jpa repository?
Is java secure? : java security
How do I open java console?
How can I write a program that takes command line input?
Do I need both jdk and jre?
Which is faster c++ or java?
What is tight coupling in java?
What is meant by rest api in java?
What does @override mean in java?
Why doesn't lsdou work under windows nt? : java security
Is jprofiler open source?
In an htm form i have a button which makes us to open another page in 15sec.how will you do that?
What do you understand by numeric promotion?