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 is a functional interface?
What is the purpose of main function in java?
What is heterogeneous in java?
How garbage collection is done in java?
What is parameters example?
What is an object's lock and which object's have locks in java programming?
What are the advantages and disadvantages of reference counting in garbage collection?
What is boolean example?
Justify your answer that you can't define a method inside another method in java, if you can then how?
Why is serialization required?
Is string is a data type in java?
If you are given the name of the function at run time how will you invoke the function?
What is the use of http-tunneling in rmi?
Why string is called as immutable?
State differences between C and Java?