why String class is immutable.

Answer Posted / naru

String object is immutable that's why security maintain of
file chech .when connection is establic first os check the
String object if string is mutable that is big pain in
security issue...

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the restriction imposed on a static method or a static block of code?

583


Is vector ordered in java?

529


What are data structures in java?

525


What's the difference between int and integer in java?

529


How does hashset work in java?

554






What is comparable and comparator interface? List their differences

570


How to obtain a performance profile of java program

535


Explain the private field modifier?

602


Is space a char?

520


Which is better singleton or static class?

498


How do I get a substring?

519


How to sort a collection of custom Objects in Java?

586


What is the use of java?

522


What methodology can be employed to locate substrings inside a string?

515


What do you mean by an object in java?

622