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
why Interface used?
How many threads does a core java have?
What does it mean to flush a file?
How does linkedhashmap work in java?
Difference between object and reference?
What is final keyword?
Explain spliterator in java8?
What are exception handling keywords in java?
Write a program to print 15 random numbers using foreach of java 8?
What is the meaning of 3 dots in java?
How can we create a synchronized collection from given collection?
What are the basic concepts of OOPS in java?
What is a class reference?
when to use ArrayList and when to use HashMap in webApplication.
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread