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 access modifiers available in java?
What does it mean to be immutable?
What is array and arraylist in java?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
Java.util.regex consists of which classes?
Is linkedlist thread safe in java?
Is there a case when finally will not execute?
What is a method header?
What is the difference between an object-oriented programming language and object-based programming language?
How do you stop a thread in java?
Why is flag used in java?
How many bytes is a char in java?
What is difference between final and finally in java?
What is main string [] args?
What do bitwise operators do?