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
Is java call by reference?
What does a boolean method return?
What is the difference between integer parseint and integer valueof?
Why isn’t there operator overloading?
What does void * mean?
What is the difference between state-based unit testing and interaction-based unit testing?
Difference between a class and an object?
How many ways can we create the string object?
What is the equal sign?
Can we declare register variable as global?
How do you print array in java?
How do you generate random numbers in java?
What is mysql driver class name?
a thread is runnable, how does that work? : Java thread
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.