C#.Net Interview Question and Answers
61. |
Is C# is object oriented? |
|
YEs, C# is an OO langauge in the tradition of Java and C++. |
|
|
62. |
What is the difference between Array and Arraylist? |
|
An array is a collection of the same type. The size of the array is fixed in its declaration. A linked list is similar to an array but it doesn’t have a limited size.
|
|
Vivek, said |
Feb ,2014 |
An array is a collection of the same type. The size of the array is fixed in its declaration. Whereas a Arraylist is similar to an array but it doesn’t have a limited size. ArrayList dynamically resizes. As elements are added, it grows in capacity to accommodate them. It is most often used in older C# programs. It stores a collection of elements of type object. Casting is needed.
|
|
63. |
What are the special operators in C#? |
|
C# supports the following special operators.
- is (relational operator)
- as (relational operator)
- typeof (type operator)
- sizeof (size operator)
- new (object creator)
- .dot (member access operator)
- checked (overflow checking)
- unchecked (prevention of overflow checking)
|
|
|
64. |
What is meant by operators in c#? |
|
An operator is a member that defines the meaning of applying a particular expression operator to instances of a class. Three kinds of operators can be defined: unary operators,
binary operators, and conversion operators. All operators must be declared as public and static.
|
|
|
65. |
What is a parameterized type? |
|
A parameterized type is a type that is parameterized over another value or
type. |
|
|