What is the difference between Enumeration and Iteration
interfaces? What is the way of to retreive the objects from
these interfaces ?
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 |
What is mime in java?
What do you understand by casting in java language? What are the types of casting?
Explain about the Physical Data Model?
what is the difference between Collaboration and Java Collaboration definition interms of JAVACAPS terminology?
How do I install java re?
What is rxjava2?
What's the difference between authentication and authorization? : java security
Where is singleton design pattern used in java?
Do I need to install jre if I have jdk?
What is ui framework in java?
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?
What is the use of lambda functions?