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 the difference between Enumeration and Iteration
interfaces? What is the way of to retreive the objects from
these interfaces ?



What is the difference between Enumeration and Iteration interfaces? What is the way of to retreiv..

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

Post New Answer

More Java Related AllOther Interview Questions

Why we need method overriding in JAVA ? I mean which method I have to override I can write that method in my Class.

1 Answers  


What is dto layer in java?

0 Answers  


In java what is the difference between sleep() and wait() .

0 Answers   Amazon,


Explain the encapsulation principle.

0 Answers  


What is meant by swing in java?

0 Answers  


What is a yaml file in java?

0 Answers  


What are the new features about Java se 8 ?

0 Answers  


What is @resource annotation in java?

0 Answers  


What is java aop?

0 Answers  


What is stateless object in java?

0 Answers  


Is java a framework?

0 Answers  


What are the authentication modes in asp.net? : java security

0 Answers  


Categories