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
How do you start a new line in java?
What happens when heap memory is full?
What does java stand for?
What happens when I use / and % with a negative numerator?
What is java autoboxing?
What is final, finally, finalize?
What are the four corner stones of oop?
What is an arraylist in java?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
What is the difference between static method and instance method in Java?
What is the base class of all classes?
Why hashmap is used in java?
What is thread pool? How can we create thread pool in java?
What do you understand by overloading and overriding in java?
How do you declare a string variable?