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

What is a class object?

696


What ide should I use for java?

725


Is nullpointerexception checked or unchecked?

762


How can I become a good programmer?

688


Explain tree set and its features?

811


Can java object be locked down for exclusive use by a given thread?

776


What is a return in java?

786


v-model life cycle

1821


What do you mean by light weight and heavy weight components?

749


What are multiple inheritances?

825


What is prefix of a string?

794


Why collection doesn’t extend cloneable and serializable interfaces?

873


What are the concepts of 'OOPS'?

820


What is the simpletimezone class in java programming?

816


What is jpa specification?

731