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

How are multiple inheritances done in Java?

862


Explain a situation where finally block will not be executed?

782


What is a variable analysis?

852


What are the different approaches to implement a function to generate a random number?

813


What about member inner classes?

880


What do you understand by looping in java? Explain the different types of loops.

806


What does java final mean?

738


What is array pointers ?

820


What is java Applet?

840


What is a singleton in genetics?

816


Why put method is used?

779


What is struts in java?

820


What is dynamic binding(late binding)?

814


How big is a gigabyte?

841


What is ternary operator?

773