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  >>  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
what is difference between String buffer and String builder?
 Question Submitted By :: Muthu_tek
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is difference between String buffer and String builder?
Answer
# 1
String Buffer is Sybchronized where as String Builder is not.
 
Is This Answer Correct ?    1 Yes 0 No
Chithra
 
  Re: what is difference between String buffer and String builder?
Answer
# 2
There is no much difference between string buffer and string
builder.only thing is all the methods available in string
buffer class are  synchronized methods.and the method
available in string builder class are non-synchronized methods.
      If we want thread safety then we have to go for string
buffer ,but performance goes down.if we don't want thread
safety the we can go for string builder
 
Is This Answer Correct ?    1 Yes 0 No
Subhareddy
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is the preferred size of a component?  1
What is interface and its use? HCL5
What is the ResourceBundle? Elementus-Technologies2
how you will prevent inheritance is there any other way other than inheritance? Wipro3
what do you meant by Platform-Independent? Persistent3
If all the methods in abstract class are declared as abstract then what is difference between abstract class and in interface? Synechron4
What modifiers are used for interface declaration?  2
What is singleton class?  4
What is 'finally' method in Exceptions?  2
Can an exception be rethrown? Wipro4
why java is not supporting multiple inheritence?  3
Can a Byte object be cast to a double value?  1
how to compile jsp? Logica-CMG1
When does the compiler supply a default constructor for a class? TCS7
C and C++ has constructors and distructors, why does Java does not have distructors? T3-Softwares1
what are the different access specifiers that can be used by interfaces and abstract classes? can anyone give me detailed description on this  7
class A{ some variables; public void a()throws Excepion1,Exception2{....} } class B extends A{ variables... public void a()throws E2,E3{.....} } Qns: here override of methods occurs or not,ore else wil give any compilation error or run properly..plz tell me briefly whts happening with the above codes.... Quinnox3
What is the range of the short datatype?  1
What do u mean by wrapper Class? What do u mean by Jvm... How do u change JVM for other OS? Or No need to Change ...? its like tricky EDS5
whats string ? HCL4
 
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