What is difference between Iterator and for loop

Answer Posted / sundarakannan d

The major difference is Iterator doesn't output the list we
are iterating in sequence.
where as in for we structure it to print in sequence.

Is This Answer Correct ?    6 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a text string?

840


What is matcher in java?

709


What is a Transient Object?

819


what is interface in java? Explain

713


What is the use of 'super' keyword inside a constructor?

728


What are the Static and Dynamic Variables? Differentiate them.

806


Can static methods access instance variables in java?

764


What does super keyword do?

760


What is the difference between char and char *?

746


What is the size of a string in java?

721


What is the meaning of variable in research?

756


Which one of the following suits the description of a string better: derived or primitive?

707


What are the different ways to handle exceptions?

725


What is literal example?

716


How does a cookie work in Servlets?

560