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 many types of constructors are used in java?
What is difference between classpath and path variables in java?
How do you reverse sort a list in java?
What is mutable object and immutable object?
Does treeset allow null in java?
What do you mean by flow of struts?
give an example for encapsulation?
How do you detect memory leaks?
How many types of methods are there in java?
What is meant by class and object in java?
Can you inherit a constructor java?
How to display names of all components in a Container?
Can we create a class inside a class in java?
What does string intern() method do?
Is java an open source?