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


Please Help Members By Posting Answers For Below Questions

What is Mutex (Mutual Exclusion Object) ?

629


Can a constructor be protected?

536


What is vector?

591


Explain about field hiding in java?

530


What are keywords give examples?

585






What is this keyword used for?

695


Write a function for palindrome and factorial and explain?

661


List some oops concepts in java?

586


Can we call virtual funciton in a constructor ?

1779


Can we declare a class as static?

598


What is preflight request?

532


Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

711


What is variable argument in java?

564


What do you mean by local variable and instance variable?

519


What is the difference between checked exception and unchecked exception?

533