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 are Generics? Where do we use them.

Answers were Sorted based on User's Feedback



What are Generics? Where do we use them...

Answer / ritz

Generics was introduced in Framework 2.0
With generics we can have typed classes. While defining
class we simply give placeholders and when we create
objects of that class we declare the placeholder to be of
some type(like int, double, string, etc.) and from that
point on our object gets bind to that type only.

Is This Answer Correct ?    8 Yes 0 No

What are Generics? Where do we use them...

Answer / rakesh kumar kunchala

Generics are used to have Typed Arrays.

Ex: if we have define that an array is confined to products.
if we push objects of product into array it accepts.
if we push employee objects into this array it will show
error . since the type of the array is product.

Is This Answer Correct ?    9 Yes 3 No

Post New Answer

More Dot Net General Interview Questions

ctype(123.34,integer) - should it throw an error? Why or why not?

1 Answers   Wipro,


Explain different types of html, web and server controls.

0 Answers  


What is the use of system.diagnostics.process class in .net?

0 Answers  


How many types of exception handlers are there in .NET?

2 Answers  


Is there any thread in our .net programs?

0 Answers  


Explain the difference between managed and unmanaged code?

0 Answers  


What is Event - Delegate? clear syntax for writing a event delegate

0 Answers  


What is the difference between .net 2000 and .net 2005(features)? Which one is better?

0 Answers  


Explain the purpose of Remoting in .NET?

0 Answers   Petranics Solutions,


Explain how com+ related to the dna architecture?

0 Answers  


What is your observations between vb.net and vc#.net?

0 Answers  


What are the fundamental objects in ADO.NET?

1 Answers  


Categories