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
What are keywords and reserved words in java?
Which is faster set or list in java?
What do you mean by access modifier?
How does regex work?
Does google use java?
How do you do absolute value in java?
Explain about varargs in java?
What is thread count in java?
What is a subsequence of a string?
Is map ordered in java?
what is the difference between Object Based Language and Object Oriented Language?
What is reflexive association?
Explain the difference between arraylist and linkedlist in java?
Explain about collection interface in java?
Why is java called java?