String is immutable.it is true
String can be change to mutable How?
Answer Posted / prathap
Because of String pooling String is immutable. Using StringBuffer we can change it as mutable. i.e.,This string literal reference is assaigened to StringBuffer object
Eg : String s="java";
StringBuffer sb= new StringBuffer(s);
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
To what value is a variable of the string type automatically initialized?
the same information whether it will connect to the database or it will be used previous information?
What is the purpose of the wait() method?
How are commas used in the intialization and iteration parts of a for statement?
What is the relation between the infobus and rmi?
Explain phantom read?
Difference between swing and awt?
What is an abstract method?
What is clustering? What are the different algorithms used for clustering?
Is the infobus client side only?
Which container method is used to cause a container to be laid out and redisplayed?
whats is statement and procedure
Why are some of the class and element names counter-intuitive?
If your ui seems to freeze periodically, what might be a likely reason?
Why do threads block on i/o?