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

Why string is a class?

728


Why pointers are not used in java?

834


Explain the scope or life time of class variables or static variables?

735


Is null a keyword in java?

735


How will you invoke any external process in java?

833


What are the 6 boolean operators?

778


What 5 doubled?

732


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

830


How do you join strings in java?

752


Why string is immutable or final in java

842


Is a char always 1 byte?

722


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

734


Explain the reason behind ending a program with a system.exit(0)?

809


What is primitive data type in java?

730


How do you write a scanner class in java?

770