Difference between String & StringBuffer

Answer Posted / ravikiran(aptech mumbai)

String is immutable where as StringBuffer is mutable.Means
until the newly created string object is reffered by a
reference variable it's value is uncahangable

Is This Answer Correct ?    34 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are invisible components?.

1676


Can you have two constructors in java?

497


What is the independent variable in an experiment?

546


Write a program to calculate factorial in java?

580


What must a class do to implement an interface in java programming?

533






How big is a gigabyte?

611


Given a singly linked list, determine whether it contains a loop or not without using temporary space?

580


How to obtain a performance profile of java program

541


What is the purpose of static methods and static variables?

538


Why javac is not recognized?

516


Explain the meaning of java applet.

601


What are the different conditional statements?

555


What are the differences between wait() and sleep()?

537


What is += mean in java?

540


Can we override final method?

565