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 ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we install jre without jdk?

917


I want to control database connections in my program and want that only one thread should be able to make database connection at a time. Define how can I implement this logic?

1000


What are jpa annotations?

919


How do I start netbeans?

1067


What is an entity in java?

984


What gives java it’s “write once and run anywhere” nature?

1156


What is a java proxy?

975


What is transactional in java?

1030


What is data encapsulation?

996


What is microservices java?

904


What is lambda expressions action func and predicate?

975


What is the difference between java se and java ee?

863


How should I format my code? How should I comment my code?

982


What is the use of lambda functions?

933


What is native class in java?

958