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

Is .net core the future?

0 Answers  


Is .net is platform independent. If am using solaris, installing .net first u had to install framework, so framework is .exe file then it will not take in solaris or any other than windows,then how .net is platform independent.

1 Answers  


What is .net3.5?

0 Answers  


Difference abstract class and interface in .net?

0 Answers  


What is typical about a windows process in regards to memory allocation in dot net?

0 Answers  






What is connected and diconnected database ?

0 Answers  


Describe the Managed Execution Process?

0 Answers  


how to connect database connectivity in dotNET? if suppose SQL server?and also MS access?

8 Answers  


What is strong name?

2 Answers  


Is there any inbuilt tool or command provided by .NET to view the code inside the assembly?

0 Answers   CitiusTech,


Explain about major components of the .NET framework.

1 Answers  


Explain cas (code access security)?

0 Answers  


Categories