FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :
   
FeedBack

C#.NET INTERVIEW QUESTIONS & ANSWERS

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,
for ex: if you add another word to the string you have it stores the new value allocating new memory space. This is a waste of memory.System.StringBuilder which is mutable, overrides the same value and places the new value in the same memory space.

Your Name Your Email-ID
Your Answer
 
42. What are the different types of literals in C#?
 
    There are Five types of literals are
  • Boolean literals
  • Integer literals
  • Real literals
  • Character literals
  • String literals
  • Null literals
Your Name Your Email-ID
Your Answer
 
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.
Your Name Your Email-ID
Your Answer
 
44. Does C# support #define for defining global constants?
  No.
Your Name Your Email-ID
Your Answer
 
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.
Your Name Your Email-ID
Your Answer