Difference between String & StringBuffer

Answer Posted / ramanareddy333

strings are immutable where as string buffer is a
mutable,that means strings having the fixed size and string
buffer size is varied(growable).

Is This Answer Correct ?    119 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the private field modifier?

584


What is the benefit of abstract class?

495


What is the difference between the file and randomaccessfile classes?

505


How do singleton patterns work?

496


How do you create a bulleted list?

541






If try block is successfully executed, Then Is Finally block executed?

579


What is treeset and treemap in java?

549


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

474


Define canvas?

539


What do you mean by thread safe?

512


Differentiate between vector and array list.

607


Write a java program to check if a number is prime or not?

517


What are keywords in programming?

542


What is functional interface in java example?

510


Is main is a keyword?

557