Answer Posted / vikrant
Once a string object is created no changes can be made to
it. If a string is modified in code a new object will be
created. That is why string is immutable
| Is This Answer Correct ? | 24 Yes | 7 No |
Post New Answer View All Answers
Can java inner class be static?
Is map ordered in java?
How do you compare characters in java?
Can we return null in java?
What is meant by object oriented programming – oop?
Can extern variables be initialized?
What is the diffrence between inner class and nested class?
What is a java predicate?
Which is a valid identifier?
What is a generic code?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
Can a string be null?
What is the difference between inheritance and encapsulation?
Explain the use of javap tool.
What is the r character?