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 |
how can we create the ui using netbeans,having the code?
Is jprofiler open source?
what are the steps in JDBC connectivity..???
What are the new features about Java se 8 ?
How do I know if I have jre or jdk?
Explain different way of using thread?
Differences between intermediate operations and terminal operations of java 8’s stream api?
What is lsdou? : java security
Name primitive java types.
What are orm tools in java?
how can program polindrome using java
Does ms edge support java?