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

Is java call by reference?

528


What does a boolean method return?

627


What is the difference between integer parseint and integer valueof?

549


Why isn’t there operator overloading?

592


What does void * mean?

530






What is the difference between state-based unit testing and interaction-based unit testing?

493


Difference between a class and an object?

574


How many ways can we create the string object?

531


What is the equal sign?

562


Can we declare register variable as global?

505


How do you print array in java?

552


How do you generate random numbers in java?

516


What is mysql driver class name?

550


a thread is runnable, how does that work? : Java thread

511


Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.

1509