what is diff bet iterator and enumeration?

Answer Posted / siva thimmannagari

Iterator supports only hasNext(),
next() and remove() methods.
It is not synchronized.


Enumeration supports ONLY
hasMoreElements(), nextElement().
It is synchronized.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the common usage of serialization?

569


When object is created and destroyed?

634


List implementations of list interface?

555


How do you compare objects in java?

492


State the difference between strings and arrays.

593






What is meant by javabeans?

607


What is the purpose of skeleton and stub?

580


What is a parameter example?

518


How we can generate random numbers in java?

599


What is the difference between notify and notifyall method?

600


Is math class static in java?

604


How many types of parsers are there?

538


What is boolean query?

524


how to prepare for IT Officers Interview in Banks

1498


How to do a true java ping from windows?

610