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 use of StringTokenizer class?

829


'A class is a template for an object' explain this statement.

764


What do you understand by classes in java?

776


How many threads does a core java have?

796


What is the need of transient variables in Java ?

817


Does constructor be static?

790


Can we clone singleton class in java?

730


How many types of memory areas are allocated by JVM in java?

812


What is singleton class and how can we make a class singleton?

874


What is difference between float and double?

707


Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx

1850


How are this() and super() used with constructors in java programming?

784


we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.

1815


What does sizeof return?

771


What is java util collection?

774