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

When will we use them?

1057


What are the different data types in java?

1013


What is use of static in java?

1176


Can you write a java class that could be used both as an applet as well as an application?

962


What is the use of default method in interface in java?

1010


Explain about serializable interface in java?

1010


How to display all the prime numbers between 1 and n (n is the number, get the input from user)

983


How big is a boolean?

1035


How do you use compareto method?

1020


What is a method in coding?

1061


What is a boolean field?

961


What does flagged out mean?

1061


Does google use java?

974


What is static synchronization?

1106


What is hashmap in java?

1061