Which collection will you use to store different types of
objects collection like... int, employee, student, object
etc.
Answer Posted / 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 |
Post New Answer View All Answers
How do I join one form to another in c#?
What is string literal in c#?
What are Regex / regular expressions ?
These questions were asked me in a technical interview: •If we deploy an application on multiple server (like database server, web server) then, each request should be redirected to proper server, then how you will handle it in your code? •How security pinholes will be handled in an application? •What things should be considered while writing a web application? •How will you do load/performance testing of web application? Which framework you will use for it? •How will you implement a cache for results which require a DB access? Please let me know how to write an web application considering all these points. I am not so much aware of architechural design of web application. Your guidelines will be helpful.
Can a class be private in c#?
Can abstract class instantiated c#?
Explain the difference between and xml documentation tag?
What is iqueryable?
What does assert() do in c#?
Explain about Threading Types.
What is the diff between the System.Array.CopyTo() and System.Array.Clone()?
What is the difference between console application and windows application?
What is concrete class in c#?
What are the value types in c#?
What is task parallel library?