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's the difference between local, global and universal groups? : java security
how can program polindrome using java
Is java installed on windows 10?
how can we create the ui using netbeans,having the code?
What is a stream in java?
How do I enable javascript?
Are there tuples in java?
What is setstring method in java?
Please can anybody explain what exactly "the project architecture" means???
What are jpa repositories?
What is transaction management in java?
What is dialect in java?