What is difference between Iterator and for loop
Answer Posted / tulasi ram damarla
Also, iterator is can be used with set to iterate and to
read an element from set. using for loop it is possible to
iterate,but you cannot read an element, because set does
not have a get() method.
Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
Differences between external iteration and internal iteration?
What is thread count in java?
Give me example of derived data types.
What is pass by value?
What is the generic class?
Can Exception handling we can handle multiple catch blocks?
What is an object class?
What is unicode with example?
What is the same as procedures?
How to check if linked list contains loop in java?
What is difference between hashset and hashmap?
Explain access modifiers in java.
What is use of static method?
When should I use stringbuffer?
Why is stringbuffer faster than string?