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 csrf in java?
how ahstraction is the property of oops,this is also in c and c++ ex. printf function which is also hide the unnecessary data,so what is the difference ? and does c++ fallow the abstraction?
What are the authentication modes in asp.net? : java security
What is tier in java?
I run a web server. Am I at risk? : java security
What is microservices java?
Explain the Sequence Diagram?
What is the difference between ec2 and lambda?
Which framework is best for rest api java?
How do I enable java in google chrome?
How do you count in java?
What is lambda expressions action func and predicate?