What is difference between Iterator and for loop

Answer Posted / srikanth nallapaneni

Iterator is used in Collection objects,but for is used for
variables.

Is This Answer Correct ?    15 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of inner class?

742


What is the order of arraylist in java?

813


What is object cloning in Java?

836


Can java list be null?

739


What is bom encoding?

760


What is the importance of static variable?

778


Explain the significance of listiterator.

761


What are 5 boolean operators?

815


Are floats faster than doubles?

762


What are the different types of constructor?

695


What is meant by anonymous class?

786


What is the meaning of find and replace?

712


Explain the selection sort algorithm and state its time complexity?

803


What does singleton mean in java?

701


What are different types of references?

743