Answer Posted / kirthika
everytime a string object is created, it enters into the string pool and thereby this concept was mainly to enhance the response time if the same string is used elsewher..
therefore string class is immutable..
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What are the two parts of a conditional statement?
How do you write a conditional statement?
Which method returns the length of a string?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
what is the difference between process and thread? : Java thread
What is difference between Heap and Stack Memory?
What is boolean in java?
What is break and continue statement?
How many wrapper classes are there in java?
How big is a pointer?
How can we create a thread in java?
What package is math in java?
What is a parameter in java?
What is a parameter in simple terms?
What is a java lambda expression?