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 local class in java?
If a variable is declared as private, where may the variable be accessed?
Can a string be null?
Does .length start 0 java?
Which java version is latest?
Can java object be locked down for exclusive use by a given thread?
What do you understand by java virtual machine?
Is null a string or object in java?
Can you sort a list in java?
What are methods?
How many bytes is a char in java?
Can we override the static method?
What is use of super keyword?
What are pass by reference and pass by value?
What is the functionality of the stub?