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 java lang noclassdeffounderror?
What are the disadvantages of java sockets?
What are the advantages of lambda functions?
Which instutute is offering course for rhino jain slee
Is java an api?
Why java?
What are tags in java?
why java has the size of character 2 byte ,while in c/c++ it is of 1 byte?
What is lazy loading in jpa?
What is a controller in java?
What is entitymanager in jpa?
what is meant by Encapsulation?Explain with an example?