Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

String is immutable.it is true
String can be change to mutable How?

Answer Posted / java

String s = "PROJECT";
String s2 = s.toLowerCase();

System.out.println(s.equals("PROJECT")); // Prints true
System.out.println(s.equals(s2)); // Prints false
In comparison, consider what would happen if Strings were mutable.

MutableString ms = "PROJECT";
MutableString ms2 = ms.toLowerCase();

System.out.println(ms.equals("PROJECT")); // Prints false
System.out.println(ms.equals(ms2)); // Prints true

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you used threads in Servelet?

2502


what are memory considerations of jsp compares to other web components?

6514


What is the relation between the infobus and rmi?

986


Explain what is orm?

1086


What is the argument type of a programs main() method?

1108


whats is mean by tiles in struts

2203


Which containers use a border layout as their default layout?

1125


what is a non-repeatable read?

2401


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

2653


What is bean? Where can it be used?

1133


How a component can be placed on Windows?

2840


What is the difference between ear, jar and war file?

1115


What is a class loader?

1852


How would you reatach detached objects to a session when the same object has already been loaded into the session?

1189


Which are the different segments of memory?

1063