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 the restrictions that are applied to the java static methods?
Why is logger singleton?
What do you mean by local class?
How to optimize the javac output?
How do you get the length of a string in java?
What does file separator do in java?
How do you use substring in java?
What is difference between static class and singleton pattern?
How to declare an arraylist in java?
What does method mean?
How do you sing an Applet ?
Can we override constructors in java?
What is the destroy method?
What does int [] mean in java?
What is difference between java and java ee?