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
What is Mutex (Mutual Exclusion Object) ?
Can a constructor be protected?
What is vector?
Explain about field hiding in java?
What are keywords give examples?
What is this keyword used for?
Write a function for palindrome and factorial and explain?
List some oops concepts in java?
Can we call virtual funciton in a constructor ?
Can we declare a class as static?
What is preflight request?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
What is variable argument in java?
What do you mean by local variable and instance variable?
What is the difference between checked exception and unchecked exception?