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 |
How common are security breaches? : java security
Describe the principles of oops.
How can one prove that the array is not null but empty?
What is a jvm?
What is orm in java?
what is reflection api? How are they implemented?
Do I need both jdk and jre?
suppose we have one String s="india is my country"; now we get the o/p "like country my is India". what is the logic?
What is type_scroll_insensitive in java?
Why is struts used in java?
For each of the following program segments,give a big zero analysis for the running time 1.For (i=0;i<m;i++) { // } 2.For (j=0;j<i;j++)
0 Answers St. Pauls University,
What is tight coupling in java?