Difference between String & StringBuffer

Answer Posted / tamanna reshmi

The main difference of string class and StringBuffer is
that....while STRING class creates strings
fixed_length,STRINGBUFFER creates strings of flexible length
that can be modified in terms of both length and
content.........

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jar?

615


What about main() method in java ?

547


What is the difference between multitasking and multithreading in Java

683


when you will synchronize a piece of your code? : Java thread

505


Is there a jre for java 11?

534






What is a module function?

534


What is difference between length and length() method in java ?

537


What do you know about the garbage collector?

579


What is dynamic array in java?

498


Can variables be used in java without initialization?

531


How do you remove all elements from an arraylist in java?

484


What is the difference between a constructor and a method?

543


Explain what is encapsulation?

578


Write a java program to generate fibonacci series ?

549


what are the disadvantages of indexes in oracle?

1840