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 are the different http methods?

530


What is classes in java?

515


What is hash table in java?

491


What are the advantages of functions?

518


How to perform linear search in java?

566






Can we rethrow the same exception from catch handler?

556


How do you do exponents in java?

534


What is nested interface?

518


How can an exception be thrown manually by a programmer?

507


What is final keyword in java? Give an example.

574


Does apple use java?

491


How do you replace all in word?

523


What are three types of loops in java?

585


Why are global variables used?

499


How do you start a thread?

546