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 difference between set and list in collection?

Answer Posted / srinu

set:
1)set interface extended from collection interface
2)set does not allow duplicated values
3)set interface contain concreated classes(TreeSet,HashSet)
4)set interface retrive the data only forward Direction
only( only Iterator is their)
5)in set object add an element at end only
6)set interface contain one sub interface(sorted set)

List
1)List interface extended from collection interface.
2)List allows duplicated values
3)List interface contain concreated
classes(ArrayList,LinkedList)
4)in List object add an element at specific(dynamic)
insertion is possible
5)List interface retrive the data forward Direction and
backword directions(ListIterator is their)
6)List interface does not contain ony sub interface

Is This Answer Correct ?    36 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we run a java program without making any object?

1049


How to change the priority of thread or how to set the priority of thread?

1040


What is the syntax and characteristics of a lambda expression?

1046


What is string args [] in java?

1038


What is the use of jtable?

1127


State the merge-sort principle and its time complexity.

980


How to perform merge sort in java?

1061


Explain the difference between abstract classes and interfaces in java?

1187


What access modifiers can be used for methods?

1105


What are the 6 boolean operators?

1108


Explain a few methods of overloading best practices in java?

988


What is t in parametric equations?

992


What is finally in Java?

1082


Can we extend a class with private constructor?

1011


What is the length of a string?

1026