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 / r.jainrocks@gmail.com
When concatenation operator "+"
used with string
it always creates a new String object,
in String pool area.
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
Can we force garbage collector to run ?
What interface is extended by awt event listeners?
What do you understand by the term polymorphism?
Can we use string in switch case in java?
What does t in java mean?
What is the meaning of 3 dots in java?
What are different types of constants?
What is the buffer limit?
What is a get method?
Explain what is Marker interface?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
What is nested interface?
How to pass arraylist to stored procedure in java?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
How do you clear an arraylist in java?