What is the differenc between Enemuration interface and
iterator interface according to accessing?
Answer Posted / eganesh
Enumeration and Iterator both are using looping statement.
Enumeration is legacy class.iterator is cotains extra
method than Enumeration.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is variable and its types?
How many types of exception can occur in a java program?
Can array grow dynamically in java?
What are different data types?
Can we override constructors in java?
What is the latest java version?
What happens to the Exception object after handling an exception?
Can we sort list in java?
Differences between C and Java?
How transient variable is different from volatile variable?
When do we use synchronized methods in java?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
Write a program in java to create a doubly linked list containing n nodes.
What happens if an exception is throws from an object's destructor?
Can memory leak in java?