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
What are the Advantages of java se 8 new features?
what is reflection api? How are they implemented?
What is stateless and stateful in java?
What is stateless in java?
What is the locale class?
I have deployed a .war file in my application server comprising of struts and hibernate.If i want to change the "dialect" property of hibernate cfg file how can i change(I have only .war file)... Thanks in advance
How do I download and install eclipse on windows 10?
Is it correct to say that using parentheses can only change?
What is mime in java?
What is resultsetmetadata in java?
What is web container in java?
What is hql in java?
How many types of jdk are there?
How do I open the java control panel?
Can we use lambda without functional interface?