What is the differenc between Enemuration interface and
iterator interface according to accessing?
Answer Posted / ravikiran
Enumeration contains elements method for iteration.
And hasMoreElements and nextelement() methods to get the
values from the collection.
Iterator contains iterator() method for iteration
And hasnext() and next() methods for the retrieval of
values from the collection.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is a singleton factory?
Difference between ‘>>’ and ‘>>>’ operators in java?
Write a program to reverse array in place?
Can we use a switch statement with strings?
What are the important features of Java 9 release?
What is dynamic binding(late binding)?
What is a qms manual?
Which is the best sorting technique in java?
How to change value in arraylist java?
What is a generic code?
What is java in layman terms?
Is age a discrete variable?
Explain what access modifiers can be used for methods?
what is the difference between a threads start() and run() methods? : Java thread
What is the argument in java?