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...

why string is not taking as primitive datatypes but we r
taking it as a class? why explain it?

Answer Posted / payel

String should be class so that it can be immutable and
making String immutable, makes it thread safe and
thus imporves performance.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are getters and setters used?

1101


What steps are taken when the OS shifts from one-thread execution to another?

1410


What is remote method invocation (rmi)?

1113


What is null data type?

1183


How do you create a first line indent?

1043


Write a method that will remove given character from the string?

1082


How do you create a reference in java?

1024


What is hash in java?

1039


What is an empty list in java?

1028


What are the types of arrays in java?

1133


What does percent mean in java?

1072


What was java originally called?

1001


What’s the difference between constructors and other methods?

1046


What is jvm? How its run?

1134


what do you mean by java annotations?

1221