Free Jobs

click here

click here
C#.NET Interview Questions(Basic)

For more advanced and tough C#.NET Interview Questions Click Here

To share this website with friends on Facebook/Orkut click this button Bookmark and Share




Q1. What is the difference between String.empty and Empty String ie "" in C#
""(Empty String) creates an object while String.Empty creates no object. So it is more efficient to use String.Empty.

Q2. In C# what is the difference between String and string
string is an alias for System.String. So technically, there is no difference. same like int and Int32

Q3. How to declare a two-dimensional integer array in C#?
int[,] arrayName

Q4. What is the meaning of Protected internal accesss modifier?
It means it can be accessed by
a)Classes within the same assembly
b)Classes derived from the declaring class

Q5. What is the difference between == and str1.Equals(str2) in C#?
In c# "==" is an operator that can be overloaded to perform different things based on the types being compared.The default operation performed by "==" is a.Equals(b)

Q6. What is boxing and unboxing?
a)Boxing:Converting a copy of value type to reference type.
b)UnBoxing:Converting a boxed value type(i.e reference type) back to value type

Q7. Does C#.NET supports multiple inheritance?

Q8. What is used to supports multiple inheritance in C#.NET?

Q9. What is meant by immutable?
Immutable means data value can't be changed.If you want to change the value then destroy the current object and create new object

Q10. What is the difference between System.String and System.Text.StringBuilder?
System.String is immutable so it is less efficient while System.Text.StringBuilder more efficient where large ammount of string manipulation is required

For more advanced and tough C#.NET Interview Questions Click Here Copyright © 2009-2011 | All Rights Reserved
All content of this website is protected by copyright laws and should not be reproduced in any form or by any means without written permission
(Best viewed in IE 8.0+ or Firefox 3.0+ at resolution of 1024 * 768 or higher)