C#.NET INTERVIEW QUESTIONS & ANSWERS
DOT Net
TAGS
41. | What is the difference between System.String and System.StringBuilder classes? |
---|---|
System.String is immutable, System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed. |
Posted by Priya. (Oct 18, 2013) | |
As System.String is immutable, |
42. | What are the different types of literals in C#? |
---|---|
|
43. | What is the difference between Boxing and Unboxing? |
---|---|
When a value type is converted to the object type, the process is known as boxing and,alternatively, when an object type is converted to the value type, the process is known as unboxing. |
44. | Does C# support #define for defining global constants? |
---|---|
No. |
45. | What is the difference between Overriding and Overloading? |
---|---|
Overriding » you override a virtual class. Overloading » you overload a method with different number of parameters or diffent type of parameters. |