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

Why packages are used?

543


What is method overriding in java ?

655


What are different types of references?

526


What is http client in java?

515


How to implement an arraylist in java?

504






what is daemon thread and which method is used to create the daemon thread? : Java thread

526


Can static methods be inherited?

533


What are the advantages of exception handling in java?

648


What is a default constructor and also define copy contrucyor?

595


Explain the importance of finally over return statement?

604


What is the purpose of the main method?

538


What are pass by reference and pass by value?

525


What are the basics of core java?

548


Explain about method local inner classes or local inner classes in java?

569


What are reference variables in java?

592