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

What are predefined functions?

1134


What does provide mean construction?

1105


What is a boolean flag in java?

1036


What does a void function return?

1012


What is the relationship between class and object?

1047


what do you mean by java annotations?

1139


Are arrays immutable in java?

1093


Explain inner classes ?

1132


Is there a way to increase the size of an array after its declaration?

1055


What is not object oriented programming?

954


What are namespaces in java?

1042


What is an argument in java?

941


Explain importance of finally block in java?

1041


What are different access specifiers in java?

1021


What is the difference between scrollbar and scrollpane?

1090