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
How do you create a method in java?
What is the difference between arraylist and hashset in java?
What is the difference between iterator and enumeration ?
What is try-with-resources in java?
What is an empty string in css?
What is the base class for error and exception?
How can you generate random numbers in java?
Can you explain inner class.
explain multi-threading in java?
Why is java so popular?
What does indexof return in java?
How do you create a reference in java?
why an outer class cannot be declared as private?
How thread scheduler schedule the task?
Define class?