Difference between String and StringBuffer.

Answer Posted / madhu

string is imutable and stringbuffer is mutable

Mutable means storing location is same
Imutable means storning location is different

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a Transient Object?

641


Difference between a class and an object?

584


Is minecraft 1.15 out?

551


What is a numeric format?

574


What is strings in java?

591






Is class forname reflection?

520


Why singleton pattern is better than creating singleton class with static instance?

540


What is the purpose of the finalize() method?

717


Why string objects are immutable in java?

569


How many bits is a word?

571


How do you create immutable object in java?

541


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

1614


What is type parameter in java?

525


What are the uses of java?

574


What is the difference between hashmap and hashtable? What is an interface?

513