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 the different ways to handle exceptions?

999


What is the difference between a break statement and a continue statement?

1034


What class of exceptions are generated by the java run-time system?

1190


Explain java coding standards for interfaces?

1107


Can a boolean be null java?

975


What is a Hash Table? What are the advantages of using a hash table?

1088


How hashset works internally in java?

1091


describe method overloading

1016


If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

1042


What is immutable class in java?

940


How do you check if a character in a string is a digit or letter?

1072


What is a values collection view ?

1085


Is sizeof a keyword in java programming?

1067


Where is java located?

1049


How do you sort a list in java?

1033