CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS J2EE JAVA DETAILS
Question :
What is the difference between StringBuffer and String class?
Category Java Interview Questions
Rating (3.0) By 5 users
Added on 10/13/2004
Views 1321
Rate it!
Answers:

A string buffer implements a mutable sequence of characters. A string buffer is like a String, but can be modified. At any point in time it contains some particular sequence
of characters, but the length and content of the sequence can be changed through certain method calls. The String class represents character strings. All string literals in
Java programs, such as "abc" are constant and implemented as instances of this class; their values cannot be changed after they are created.



If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    Describe, in general, how java's garbage collector works?
    View Answer
    What's the difference between == and equals method?
    View Answer
    What are abstract classes, abstract methods?
    View Answer
    How can you force all derived classes to implement a method present in the base class?
    View Answer
    What is the difference between an Applet and an Application?
    View Answer
    Java says "write once, run anywhere". What are some ways this isn't quite true?
    View Answer
    Describe java's security model.
    View Answer
    What is the difference between a Vector and an Array. Discuss the advantages and disadvantages of both?
    View Answer
    How many different types of JDBC drivers are present? Discuss them.
    View Answer
    What does the keyword "synchronize" mean in java. When do you use it? What are the disadvantages of synchronization?
    View Answer

    Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

    Notify me when better answer is posted!
    Email:

    View ALL Java Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions
    Page URL: http://www.coolinterview.com/interview/456/default.asp?cachecommand=bypass


    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

    1.84
    Cache = 0.015625 Seconds