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 do you mean by local class?
What is java instanceof operator?
What is the final blank variable?
What do you understand by casting in java language?
What is sizeof in java?
Tell me about your ability to work under pressure
What are the different types of data structures in java?
What is diamond operator in java?
What is Java Shutdown Hook?
How do you sing an Applet ?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
What flag up means?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
What is meant by polymorphism?
What is the difference between compiler and jvm?