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
Are enterprise beans allowed to use thread.sleep()?
Describe responsibilities of Activator?
How to implement RMI in Java?
What do you need to set-up a cluster with jboss?
Why is actionform a base class rather than an interface?
Name the class that is used to bind the server object with RMI Registry?
What is the difference between the session.get() method and the session.load() method?
Define prototype?
What value does readline() return when it has reached the end of a file?
What are the oops concept?
Is the ternary operator written x : y ? Z or x ? Y : z ?
What is a class loader?
What is clustering? What are the different algorithms used for clustering?
Why use POJO when I can use hashmap
What are various types of class loaders used by jvm?