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 set and list?

Answer Posted / vinod varma

set is an interface which doesnot allows the duplicate values
where as list is also an interface which allows the
duplicate values and we may not guarantee the order of
elements in set
but we can get the elements from list according to their
indexes. we may not insert the elements into set at the
specific index, but possible in list.

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe what happens when an object is created in java ?

1066


What is final keyword?

1236


What are sets in java?

1001


Can classes declared using the abstract keyword cab be instantiated?

1094


How to sort elements in a parallel array in java?

950


How does indexof work?

1011


Can we use switch statement with strings?

1089


Why string is called as immutable?

1008


Can I learn java in 3 months?

1076


What is the difference between interface & abstract class?

1084


What are java packages? What is the significance of packages?

1066


how to split string in java?

1280


What is difference between path and classpath?

1265


What are selection structures?

1047


What are different types of multitasking?

1004