String is mutable or immutable?

Answer Posted / tanveer

String class is immutable .To make the String immutable use String Buffer or String Builder classes which are mutable

Is This Answer Correct ?    14 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we overload the main() method?

545


Implementations of set interface?

555


What are different types of inner classes ?

551


What is the list interface in java programming?

578


what is comparable and comparator interface?

570






How do you check if two strings are equal in java?

576


What is a priority queue java?

516


What is object in java?

524


Define "Access specifiers" in java.

606


Why do we create threads in java?

570


What are internal variables?

547


What are the steps that are followed when two computers connect through tcp?

515


Why collection is called framework in java?

536


What is a Null object?

886


What is high level language in computer?

530