what is diff bet iterator and enumeration?

Answer Posted / muralisankar

Both are to navigate collection objects. But Enumerator you
can not manipulate where as in Iterator you can add and
remove objects.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between class and structure.

622


What is the difference between a static and a non-static inner class in java programming?

521


How do you use nextline in java?

499


Does list maintain insertion order java?

531


What is java used for on a computer?

503






How do you reverse a string in java without using string buffer?

587


How to connect to a remote database using Applet?

2038


Can a source file contain more than one class declaration?

507


Why java uses the concept of the string literal?

541


What is the impact of declaring a method as final?

556


What is a java lambda expression?

547


In the below example, what will be the output?

588


Why java is said to be pass-by-value ?

534


What do you understand by copy constructor in java?

486


What is the hashcode () and equals () used for?

531