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

Differentiate between run time error and syntax error.

573


What is the use of default method in interface in java?

555


Is java pass by value or pass by reference?

541


What variables are stored in stack?

531


Why main method is static in java?

598






Is java se free?

524


What is anti pattern in java?

520


how to one war file class to another war file class?

1554


What is the difference between hashmap and hashtable? What is an interface?

510


hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

1465


How to pass arraylist to stored procedure in java?

550


What is protected access modifier?

579


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

601


What is polymorphism and what are the types of it?

510


Is main a function?

516