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
Define jre i.e. Java runtime environment?
Is 0 an even number?
What does next mean in java?
What is byte data type?
What is the use of volatile in java?
What does singleton mean in java?
How do you write methodology?
What is %d in printf?
Which category the java thread do fall in?
Can I extend singleton class in java?
Implement a stack with push (), pop() and min() in O(1) time.
Can we convert stringbuilder to string in java?
What technique is carried out to find out if a particular string is empty?
What is core java used for?
How does multithreading take place on a computer with a single cpu in java programming?