ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  C Sharp
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
What’s the difference between System.String and 
System.Text.StringBuilder classes with example
 Question Submitted By :: Yugi9966
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What’s the difference between System.String and System.Text.StringBuilder classes with example
Answer
# 1
System.string works on copy of string data.
System.Text.StringBuilder works on actuval string data
 
Is This Answer Correct ?    4 Yes 2 No
Sudha
 
  Re: What’s the difference between System.String and System.Text.StringBuilder classes with example
Answer
# 2
according to me difference between a string class and using String Builder is that in using a string class you need to create new object befour appending it to the main string but in string builder class one don`t need to create object every time

Example for string builder class:
using System.Text;

stringBuilder str = new stringBuilder;
str.append("");

in the previous example once u create str as new instance of string builder class u just have to append every thing in to the string
 
Is This Answer Correct ?    1 Yes 0 No
Puneet Mishra
 
 
 

 
 
 
Other C Sharp Interview Questions
 
  Question Asked @ Answers
 
Can you prevent your class from being inherited and becoming a base class for some other classes?  2
what is unit testing  2
How do you generate documentation from the C# file commented properly with a command-line compiler?  1
Did a generic class can be inherited by a normal class? TCS1
what is an internal specifier? what happens internally when I use access specifier Internal ? rsystems4
Where are all .NET Collection classes located ? TCS6
How to store image file in Sql server database? Unique-Software-Systems4
How to transpose rows into columns and columns into rows in a multi-dimensional array? Microsoft2
What?s the difference between an interface and abstract class?  4
all information  1
Explain constructor? Wipro6
How you will connect to windows directory in c#? HP2
why c# is pronounced as C-sharp instead of pronouncing it as C-hash? is there any technical reason behind it?  2
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?  1
I have to create a windows application using C# .net to Modifiy the XML file. The application have to show the node and node value. plz help me. Merrill-Lynch3
what is namespace?  6
SqlCommand cmd = new SqlCommand(); using (cmd) {...} Referring to the above, what method is implicitly called at the end of the "using" statement? IBM1
How do you debug an ASP.NET Web application?  1
Trace the O/p for a program on inheritance and Polymorphism. 3 classes A,B,C A with two methods public virtual SomeMethodA public virtual SomemoreMethodA B:A overide SomeMethodA C:B new Method SomeMethodA override SomeMoreMethodA main method { b new instance of B b.SomeMethodA b.SomeMoreMethodA b1 new instance of C b1.SomeMethodA b1.SomeMoreMethodA } Proteans2
what are the advantages of c# over vb.net? Choice-Solutions6
 
For more C Sharp Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com