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 the major difference between linkedlist and arraylist?
List down the methods and interfaces of collection class in java.
What is an example of declaration?
What are design patterns and please explain?
Explain the importance of join() method in thread class?
Is singleton class immutable?
What is immutable in java?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
What is the difference between synchronized and synchronized block?
Explain the difference between call by refrence and call by value?
What is a databasemetadata?
What is 16 bits called?
What java ide should I use?
What are the methods of object class ?
How many techniques can be employed to create a string object?