What are Generics?

Answer Posted / kumar vaibhav

Generics is a data structure which allow you to create type-safe data structures without committing to actual data types. Generics provides significant performance boost and higher quality code by reusing data processing algorithms without duplicating type-specific code.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are Types of assemblies that can be created in dotnet

580


What does char mean in c#?

496


What floating point types is supported in C#?

589


For methods inside the interface why can’t you specify the accessibility modifier?

545


What is a console application in c#?

446






What is the difference between static and constant variables?

537


If multiple interfaces are inherited and they have conflicting method names; What will happen ?

502


Is there an equivalent to the instanceof operator in visual j++?

515


Give an example of a directcast.

512


What is the difference between out and ref in c#?

479


What is difference between static and readonly in c#?

442


What is the main purpose of delegates in c#?

505


What do you know about WM_CHAR message?

569


How to assign Null value to Var?

540


What is datacontract in c#?

481