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

How does enum work in java?

1068


Can we modify the throws clause of the superclass method while overriding it in the subclass?

1077


What is a modifier?

1597


Are arrays dynamic in java?

1085


Can java program run without jre?

1061


Why parsing is done?

1028


Can we force the garbage collection to run?

1000


What does a boolean method return?

1301


What is a parameter in simple terms?

1071


How can you write a loop indefinitely in java programming?

1072


What are basic keywords?

1075


Can we have two methods in a class with the same name?

1108


What is the purpose of the runtime class in java programming?

1117


What is a lightweight component?

1064


What is map java?

1030