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...


Which collection will you use to store different types of
objects collection like... int, employee, student, object
etc.

Answers were Sorted based on User's Feedback



Which collection will you use to store different types of objects collection like... int, employee..

Answer / muralik.it

its better to use generic class ie list

Is This Answer Correct ?    6 Yes 1 No

Which collection will you use to store different types of objects collection like... int, employee..

Answer / rasik bihari

I would use array list. Every element in an array list is
of object type. Since object class is base class of all the
types in .net or any custom class so it will be possible to
store different types of objects like int,employee(Custom
class), student(custom class), object (base class itself)
into an Array list collection.

Is This Answer Correct ?    15 Yes 12 No

Which collection will you use to store different types of objects collection like... int, employee..

Answer / guest

Tuple

Is This Answer Correct ?    1 Yes 0 No

Which collection will you use to store different types of objects collection like... int, employee..

Answer / guest

structure

Is This Answer Correct ?    5 Yes 5 No

Which collection will you use to store different types of objects collection like... int, employee..

Answer / sumithra

We can use structure. Structure holds different types of data where as array is homogenous.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

How do you remove the objects which are not in use?Explicitly or implicitly?What is the exact mechanism going behind?

2 Answers   Advanced Software Systems, Choice Solutions,


What is .edmx file?

0 Answers  


What can you do as a .net developer?

0 Answers  


How Reflection is used and what it's significance ?

0 Answers   HCL,


How do I open the console window?

0 Answers  


Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?

0 Answers  


How do I create a dbml file?

0 Answers  


How can you sort the elements of the array in descending order?

4 Answers  


How will U encapsulate button trigger event into text_box event of Pressing Enter key?

3 Answers   TCS,


What is the difference between hashtable and dictionary in c#?

0 Answers  


What is meant by collections in c#?

0 Answers  


What are the Configuration files in .net?

0 Answers  


Categories