string is immutable? right every one knows that, my
question is it advantage or disadvantage making string
immutable?
Answer Posted / vinod kumar
It is an advantage
performance: knowing that a string is immutable makes it
easy to lay it out at construction time — fixed and
unchanging storage requirements
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What are the library functions in java?
What are the four pillars of java?
What is an association?
What is data type in computer?
What are basic data types?
What is heterogeneous in java?
What happens when you add a double value to a string?
Why main method is static in java?
What is natural ordering in java?
How many java versions are there?
Is there any limitation of using inheritance?
What is an immutable object? How do you create one in java?
What 4 doubled?
Which data type is class in java?
What's the access scope of protected access specifier?