When you say String is immutable, what do you mean by that?
Say I have String s = "Ness"
s= s+"Technologies";
What will happen? If the value gets appended, then what is
the meaning of immutable here?
Answer Posted / harmetkrishanan
every time a new String object gets created in this case.
| Is This Answer Correct ? | 24 Yes | 5 No |
Post New Answer View All Answers
What is regex used for?
What is unmodifiable collection in java?
Why java is a platform independent? Explain
What does three dots mean in java?
How will you add panel to a frame?
What is a class reference?
How dead lock situation occurs in java and how you can identify it?
Is a method a procedure?
Is singleton class immutable?
Is java util list serializable?
Why hashcode is used in java?
Which is the best approach for creating thread ?
What are the properties of thread?
Is set thread safe java?
Can a static class have a constructor java?