What is the difference between Enumeration and Iteration
interfaces? What is the way of to retreive the objects from
these interfaces ?



What is the difference between Enumeration and Iteration interfaces? What is the way of to retreiv..

Answer / 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

More Java Related AllOther Interview Questions

What is mime in java?

0 Answers  


What do you understand by casting in java language? What are the types of casting?

0 Answers  


Explain about the Physical Data Model?

1 Answers   HCL,


what is the difference between Collaboration and Java Collaboration definition interms of JAVACAPS terminology?

1 Answers   CSC,


How do I install java re?

0 Answers  






What is rxjava2?

0 Answers  


What's the difference between authentication and authorization? : java security

0 Answers  


Where is singleton design pattern used in java?

0 Answers  


Do I need to install jre if I have jdk?

0 Answers  


What is ui framework in java?

0 Answers  


What is type inference? Is type inference available in older versions like java 7 and before 7 or it is available only in java se 8?

0 Answers  


What is the use of lambda functions?

0 Answers  


Categories