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   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
Difference String and String Buffer
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Difference String and String Buffer
Answer
# 1
String are read only and immutable. The StringBuffer class 
is used to represent characters that can be modified.
StringBuffer is faster than String when performing simple 
concatenations.
 
Is This Answer Correct ?    2 Yes 0 No
Kanchan
 
  Re: Difference String and String Buffer
Answer
# 2
String buffers are safe for use by multiple threads
 
Is This Answer Correct ?    0 Yes 1 No
A Kumar
 
 
 
  Re: Difference String and String Buffer
Answer
# 3
String is immutable object..we can't modified the value...
but string buffer is mutable object we can change.
>>It can increase or decrease the size dynamically..
>>It contains Max 255 characters..

Warm & Regards
Parames(PRC)

Thanjavur
 
Is This Answer Correct ?    2 Yes 0 No
Parameswaran
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is the difference b/w PUT and POST method to send data to the server Mind-Tree2
what is meant by serialization?  6
class A{ m2(){ } } class B extends A{ m2(){ } } class c extends B{ m2(){ } } class my_class extends c{ m2(){ } pulic static void main(){ ...My_class a = new my_class(); super.super.super.m2(); is this is leagal if not find what is the legal procedure in order to call A's version of m2(); } Logica-CMG8
What is Vector?Can you elaborate how Vector is Thread safe?  3
when we have to use final class in java?  2
1).what is the difference between below examples String s="vijay"; String s=new String("vijay"); TCS11
Define Compiling?  2
How to re-get an object that is collected by garbage collector?  1
Read data from console and print in one file. That would be in C:\temp ? Thanks, Bose Oracle1
how cani read a command line argument?(usingfile object).  3
Explain about Superclass and Subclass?  4
Difference String and String Buffer  3
What is means by DLL file means ? What is the use of DLL file? What are the contents of DLL file?  2
How can we handle runtime exceptions? write one sample program? Can we write runtime exceptions beside the throws key word? if yes write sample program? Huawei1
What is JIT ? Satyam4
Which of the following can be referenced by a variable? A. The instance variables of a class only B. The methods of a class only C. The instance variables and methods of a class  2
What is the basically use of finally while we know it is always executed but why? TCS4
Is java supports multiple inheritance? explain? Inforica11
Adapter classes?  3
Can an abstract class be final?  6
 
For more Core Java 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