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
Can a variable be local and static at the same time?
What does .equals do in java?
What is the difference between interface & abstract class?
Can we cast any other type to boolean type with type casting?
I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in
5 Coding best practices you learned in java?
What is the epoch date?
Is void a wrapper class?
Explain restrictions for using anonymous inner classes?
What is a java list?
Can we write multiple catch blocks under single try block?
Why object class is super class for every class in java?
What is anagram of a string?
Can we override constructors in java?
What is difference between length and length() method in java ?