What is difference between Iterator and for loop

Answer Posted / vijayakumar chinnasamy

In iterator the remove() is available to remove the
content/item but in for loop remove() not available.

Is This Answer Correct ?    52 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the inheritance?

549


What is string immutability?

537


Why array is used in java?

511


What is default switch case? Give example.

574


What is the synonym of procedure?

528






Why does java not allow multiple public classes in a java file ?

3438


What are unchecked exceptions in java?

610


Explain the scope of a variable.

628


What's the base class in java from which all classes are derived?

735


What is arraylist e?

557


What are generic methods?

527


What is string and its types?

609


Is it possible for a yielded thread to get chance for its execution again?

507


Can we override constructor in java?

574


Which is faster string or stringbuilder?

515