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
Have you ever used hashtable and dictionary?
What is sortedmap interface?
What does || mean in vectors?
Give reasons supporting that string is immutable.
What are Normalization Rules? Define Normalization?
How many inner classes can a class have?
What is multithreading and its advantages?
Is string is a keyword in java?
What are basic keywords?
What is class array in java?
What is return keyword in java?
What is vector?
For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green White will have 1 Weight. Red and Green carry no weights. Shortest path is the path with less weight when you add up the weights in the path.
What is unmodifiable collection in java?
What is the static block?