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
Can you give few examples of final classes defined in java api?
What is the Concept of Encapsulation in OOPS
What is a singleton class? Give a practical example of its usage.
What is the difference between yield() and sleep()?
Is nan false?
What is the use of arrays tostring () in java?
Why java is considered dynamic?
How does linkedhashmap work in java?
What is private static class in java?
What is the function of compareto in java?
Tell some latest versions in JAVA related areas?
What is floor math?
What is the difference between static method and instance method in Java?
What is argument in java?
How do you make an arraylist empty in java?