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
Why we override equals() method?
Which are different kinds of source code?
What is += mean in java?
How do you sort data in java?
Explain about the dynamic behavior of core java?
What is off heap memory?
What is native code?
What are inner classes or non static nested classes in java?
Is there any difference between synchronized methods and synchronized statements?
How do I get 64 bit java?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
Write a program to print count of empty strings in java 8?
What does it mean to flush a file?
What is concurrent hashmap and its features?
Difference between current previous versions of Java?