What is the differenc between Enemuration interface and
iterator interface according to accessing?

Answer Posted / ravikiran

Enumeration contains elements method for iteration.
And hasMoreElements and nextelement() methods to get the
values from the collection.
Iterator contains iterator() method for iteration
And hasnext() and next() methods for the retrieval of
values from the collection.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does java ide mean?

733


How do I find and replace in word?

624


How to instantiate member inner class?

728


What is the null?

658


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

796






What is the use of http-tunneling in rmi?

656


Explain about map interface in java?

672


Why there is no call by reference in java?

585


Why can't we use static class instead of singleton?

590


Explain what pure virtual function is?

686


what is deadlock? : Java thread

615


Say any two properties in beans?

714


Why is java called the platform independent programming language?

676


What does the “static” keyword mean? Can you override private or static method in java?

720


Can we have multiple catch block for a try block?

673