Difference String and String Buffer

Answer Posted / parameswaran

String is immutable object..we can't modified the value...
but string buffer is mutable object we can change.
>>It can increase or decrease the size dynamically..
>>It contains Max 255 characters..

Warm & Regards
Parames(PRC)

Thanjavur

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a local block?

640


How do you declare a variable?

629


Why do we need hashset in java?

504


what is synchronization? : Java thread

563


What are the three parts of a lambda expression?

538






In a class implementing an interface, can we change the value of any variable defined in the interface?

560


What is the difference between super class & sub class?

567


What are advantages and disadvantages of OOPs?

630


Can I overload to string method

969


What is lexicographically smallest string?

602


Can a static method be overridden in java?

559


What is size of int in java?

548


When arithmeticexception is thrown?

583


Difference between ‘>>’ and ‘>>>’ operators in java?

641


Can a static method be final?

557