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
How do you pass by reference?
How do you clear a list in java?
What is the class in java?
What does java ide mean?
How do you sort words in java?
When throws keyword is used?
What are extraneous variables examples?
How do we access static members in java?
What is boolean flag in java?
Can a class have 2 constructors?
Why do I need to declare the type of a variable in java?
How do you calculate roots in java?
What is a concrete classes? Is Java object class is concrete class?
What does \ mean in regex?
What is the difference between superclass and subclass?