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 initialize variables?
What is __ init __ functions?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
Which class is the superclass for all the classes?
What are methods in java?
How do you compare two objects?
What is the difference between superclass and subclass?
What is the difference between sop and work instruction?
What is math exp in java?
Can a class have multiple superclasses?
What is an example of declaration?
Can we have try block without catch block?
What is the purpose of the return statement?
Why does java does not support multiple inheritance? Explain
Why can't you declare a class as protected?