Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is diff bet iterator and enumeration?

Answers were Sorted based on User's Feedback



what is diff bet iterator and enumeration?..

Answer / muralisankar

Both are to navigate collection objects. But Enumerator you
can not manipulate where as in Iterator you can add and
remove objects.

Is This Answer Correct ?    8 Yes 1 No

what is diff bet iterator and enumeration?..

Answer / siva thimmannagari

Iterator supports only hasNext(),
next() and remove() methods.
It is not synchronized.


Enumeration supports ONLY
hasMoreElements(), nextElement().
It is synchronized.

Is This Answer Correct ?    1 Yes 0 No

what is diff bet iterator and enumeration?..

Answer / aslam

Iterator has an additional method remove() and also
iterator checks for the concurrent modifications which will
be useful in multi threaded applications.

while Enumerator is much faster for sequential
access over collection elements, because it doesnot have
the additional overhead of checking concurrent modifications

Is This Answer Correct ?    0 Yes 0 No

what is diff bet iterator and enumeration?..

Answer / raju

From my experiance shows Enumeration is thread safe ..

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More Core Java Interview Questions

How to implement an arraylist in java?

0 Answers  


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

0 Answers   HCL,


Differences between traditional programming language and object oriented programming language?

0 Answers  


Can java run on google chrome?

0 Answers  


how many types of Inheritance?

0 Answers   Impetus,


What is advantage of using threads?

2 Answers   BMC,


what is the use of clone method? why user cant overwrite in sub class without its proper defination.

2 Answers   TCS,


What does string mean in java?

0 Answers  


What is the difference between static synchronize() metod and synchronize() method?

1 Answers   Polaris,


Explain the different forms of polymorphism?

0 Answers  


i need example for java abstraction. where we use abstraction and why we need abstraction.

2 Answers   Oracle,


difference between java ,c#&java,c++

3 Answers  


Categories