What is the difference between Enumeration and Iteration
interfaces? What is the way of to retreive the objects from
these interfaces ?
Answer / suma
1.Enumeration interface applicable legacy implemented classes.
Iterator is applicable for all collection implemented classes.
2.Enumeration :While iterating the elements we are not
allowed to remove the objects just we can perform only read
operation
Iterator:While iterating we can perform removal also in
addition to read operation
3. Enumeration uses elements() method ,
Iterator uses iterator() method
Is This Answer Correct ? | 8 Yes | 0 No |
What is meant by annotation in java?
what is the serialization?
I am trying to create a new universal user group. Why can't i? : java security
What is setstring method in java?
Is java installed on windows 10?
What is flatmap in java8?
What about products that claim to detect malicious applets? : java security
What is a java executable jar file?
Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place?
How do javabeans work?
How does java handle integer overflows and underflows?
How to load a class programmatically?