Why enumeration is faster than iterator?
Answer / Ayushi Singh
Enumeration may be faster than Iterator in some cases because it doesn't extend the ListIterator class and doesn't provide the ability to add or remove elements during iteration. However, this difference is generally negligible and both are efficient.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the numeric promotion?
Explain about method local inner classes or local inner classes in java?
why constructor dont have returns type?
suppose in a class there is a code like this: { Set hs=new Hashset(); hs.add(new Emp("kathy",1000)); hs.add(new Emp("kathy",2000)); } how can u avoid the above code in your class as set won't allow duplicate objects?
What are File and RandomAccessFile classes?
In what ways you can handle exception ?
does java support default argument in Method?
What is Servlet?
Difference between abstract class and Interfaces?
7 Answers CTS, iFlex, PA Consulting, Sai Softech, Value Chain,
What are the library functions in java?
When does a class need a virtual destructor?
what is connection pooling with example?