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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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 ?    4 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 ?    4 Yes 0 No
Subhareddy
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
How the elements are organized in BorderLayout?  4
Does garbage collection guarantee that a program will not run out of memory?  1
what is mean by overriding in which situation we wil use? Atlas-Systems4
explain me with a code snippet about the generation and handling of null point exceptions.  1
When finally clause is executed?  3
What are command line arguments?  2
I have one Shopping cart application, i that i have selected some items, while clicking submit button by mistake i have clicked twice or trice, that time items are selected twice or trice. Actually i want only one copy of items but its selected twice or trice. So how can we avoid this problem? Honeywell2
who can we create the object of a class? in how many ways we can create it (max 5)  1
when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.  2
what is difference between front controller and action servlet?  2
what is the replacement for GOTO in java? CTS2
What classes of exceptions, thrown by a throw statement?  2
What is the purpose of having the concept of overloading? Ness-Technologies5
transaction attributes ?  2
what is the difference between equals method and == Professional-Access11
I have a String s = java; What is the output when I say s.replaceAll('j', 'k'); Also what is the value of s after replacing? KPIT5
What primitive Java types? Howmany are they and what are their names?  3
Difference between Applet & Application?  5
what is Hashmap & Hashtable wirh example? Saksoft4
whats the diff between jsp and servlets? HCL9
 
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