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 about static nested classes in java?
how we can make a write-only class in java?
What is finalize()? Is finalize() similar to a destructor?
What are encapsulation, inheritance and polymorphism?
Does the order of public and static declaration matter in main method?
What are the rules for variable declaration?
What is the argument in java?
What is the difference between serializable and externalizable interface?
Differentiate between the constructors and methods in java?
What is the set interface in java programming?
what is predefined function in java?
os is developed in c no java is more secured then c na why dont the os developed is developed using java
What is a local, member and a class variable?
Explain super keyword in java.
Can you sort a string in java?