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 |
Why we need method overriding in JAVA ? I mean which method I have to override I can write that method in my Class.
What is dto layer in java?
In java what is the difference between sleep() and wait() .
Explain the encapsulation principle.
What is meant by swing in java?
What is a yaml file in java?
What are the new features about Java se 8 ?
What is @resource annotation in java?
What is java aop?
What is stateless object in java?
Is java a framework?
What are the authentication modes in asp.net? : java security