Difference between String & StringBuffer

Answer Posted / kunal chwala

It means that we cant change the content of String once created. If we try append a new string using + operator
then it creates new String object.
ex.

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain different ways of using thread? : Java thread

580


What is structure of java heap? What is perm gen space in heap?

548


What do you understand by access specifiers in Java?

598


Is an integer an object?

527


Why java is made?

579






What is ide with example?

558


Why object class is super class for every class in java?

589


what state does a thread enter when it terminates its processing? : Java thread

610


How to perform linear search in java?

578


What is main difference between variable and constant?

540


What is a stack class in java ?

618


What is a method vs function?

579


When should you use arraylist and when should you use linkedlist?

507


How do you calculate square roots?

585


How to sort an array from smallest to largest java?

550