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 do you get length in java?

966


What is meant by javabeans?

1025


Can we overload the constructors?

924


Can constructor be static or final?

1037


What is reverse function?

1048


Why is singleton instance static?

940


Can a function return a function?

986


How do you convert string to int in java?

1008


What is the basic concept of java?

960


Why declare Main() method as a static in java ?

1018


How will you initialize an Applet?

1075


What restrictions are placed on method overloading?

1113


Define Multiprogramming and Multiprocessing in java.

1060


Can a method be static?

912


What are java threads?

1061