string is immutable? right every one knows that, my
question is it advantage or disadvantage making string
immutable?
Answer Posted / prashant renge
It is advantage,
because String is standard class,if it is muttable
behaviour is inconsistant.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Can you explain inner class.
What are selection structures?
What is data member in java?
How can we run a java program without making any object?
How to stop a thread in java? Explain about sleep () method in a thread?
Do we need to manually write Copy Constructor?
What are new features introduced with java 8 ?
Tell me about different OOPS concepts.
What are the major advantages of internal iteration over external iteration?
What is the protected method modifier?
What is a string token?
What is a predicate method?
What is considered an anti pattern?
What is the purpose of object oriented programming?
How does regex work?