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 / ankit

All primitive types have fixed memory size. Now in case of
the String, its length is not fixed and so is its size.
That's why it cannot be a primitive data type.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

design an lru cache in java?

980


What is public static?

1014


What is variable explain?

984


Why javac is not recognized?

922


What is meant by vector class, dictionary class, hash table class, and property class?

1133


What is the purpose of encapsulation?

998


What is the use of static class?

1159


What is port number in java?

1016


What is sleep method?

1122


Can long be null in java?

998


Can we declare register variable as global?

916


Which programming language is most secure?

973


Explain the difference between private, public, package and protected in java?

1031


Convert a BST into a DLL and DLL to BST in place.

1101


What are the differences between include directive and include action?

1153