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 is the difference between throw and throws keywords?

576


Can a class have more than one object?

528


What is polymorphism java example?

549


What is an example of a keyword?

545


What is a parameter example?

531






What is mnemonic in assembly language?

554


Can we force garbage collector to run ?

574


What does indexof return in java?

536


Can we sort list in java?

605


enlist some features of jdk.

562


What are 3 boolean operators?

536


What are the benefits of operations?

511


What is the default value of float and double datatype in java?

534


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

563


What is hashmap and map?

559