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

What is the map interface?

1080


What is an abstract method?

1004


Explain how will the struts know which action class to call when you submit a form?

916


Can I import same package/class twice? Will the jvm load the package twice at runtime?

1085


Brief description about local interfaces?

1191


Which container method is used to cause a container to be laid out and redisplayed?

1092


How substring() method of string class create memory leaks?

990


how do you Handle Front End Application data against DB with example?

1918


Define the remote object implementation?

2409


Why are component architectures useful?

1010


What is message driven beam?

1002


What is RMI and what are the services in RMI?

1081


What is glasgow?

1000


wahts is mean by dynavalidatorform in struts/

1997


Are there books about seam?

1053