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 we override private constructor in java?
Is node a data type in java?
If two threads have same priority which thread will be executed first ?
Is main a function?
What is jrmp?
Which oo concept is achieved by using overloading and overriding?
Can we sort set in java?
Can we assign null to double in java?
What are the limitations of procedural programming approach?
What are variable names?
Can you have two constructors in java?
Can we override compareto method?
Explain the difference between jdk, jre, and jvm?
Can we execute a program without main?
What is JDBC Driver interface?How can you retrieve data from the ResultSet