Answer Posted / aslam
Iterator has an additional method remove() and also
iterator checks for the concurrent modifications which will
be useful in multi threaded applications.
while Enumerator is much faster for sequential
access over collection elements, because it doesnot have
the additional overhead of checking concurrent modifications
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is class forname used for?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
How are multiple inheritances done in Java?
Explain the differences between abstraction and encapsulation?
What is meant by object oriented programming – oop?
What are the differences between the constructors and methods?
What does percent mean in java?
What is nextint java?
What is the primary benefit of encapsulation?
What is deserialization?
What is the static keyword?
When should we create our own custom exception classes?
What is ternary operator? Give an example.
What are the legal parameters?
Explain about the select method with an example?