what is difference between String buffer and String builder?

Answer Posted / chithra

String Buffer is Sybchronized where as String Builder is not.

Is This Answer Correct ?    20 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is null false in java?

702


Say you want to store the information about a number of pets in an array. Typical information that you could store for each pet (where relevant) would be • Breed of animal • Animal's name • Its birth date • Its sex • Whether it has been sterilised or not • When it is due for its next inoculation • When it last had its wings clipped For each type of pet (eg. dog, cat or bird) you would typically define a class to hold the relevant data. Note: You do not need to implement these classes. Just answer the following questions. 3.1.1 What would be the advantage of creating a superclass (eg. Pet) and declaring an array of Pet objects over simply using an array of Objects, storing each of the instances of the different pet classes (eg. Dog, Cat or Bird) in it? 3.1.2 Would you define Pet as a class or as an interface? Why? (2) (2)

1343


Difference between keyword and identifier.

589


What are different types of references?

526


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2366






What is the purpose of the finally clause of a try-catch-finally statement in java programming?

504


Do loops java?

546


Is treeset sorted in java?

574


How to obtain a performance profile of java program

540


How do you use spaces in java?

519


Difference between concurrent hashmap and hashtable and collections

561


When is an object subject to garbage collection?

572


Is java free for commercial?

489


What is the Difference between Final Class && Abstract Class?

613


How to add menushortcut to menu item?

557