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 are the major drawbacks of external iteration?
Does java linked list allow duplicates?
What do you know about the garbage collector in java?
What are the actions that can occur when a thread enters blocked state?
What is dynamic binding(late binding)?
What is the size of integer?
What is the difference between this() and super() in java?
How do I write a self declaration?
What is __ init __ functions?
Does java support Operator Overloading?
What are the differences between wait() and sleep()?
What does bitwise or mean?
Explain the reason behind ending a program with a system.exit(0)?
What is the numeric promotion?
How many types of methods are there in java?