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 java has the size of character 2 byte ,while in c/c++ it
is of 1 byte?

Answer Posted / chandan

Java was created around the time when the Unicode standard had values defined for a much smaller set of characters. Back then it was felt that 16-bits would be more than enough to encode all the characters that would ever be needed. With that in mind Java was designed to use UTF-16. In fact, the char data type was originally used to be able to represent a 16-bit Unicode code point.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a driver in java?

944


What about javascript? : java security

1018


How do I know if I have jre or jdk?

902


What are the risks in java security? : java security

853


can a program use more than one command-line argument?

958


What is javacpl?

927


What do you understand by casting in java language? What are the types of casting?

866


What is singleton pattern in java?

852


Can an application have multiple classes having main method?

936


Why is javac not recognized?

883


What is @override annotation in java?

984


explain isalive() method under thread class?

1016


What is cdi bean in java?

991


Do I really have to type in the programs in the book to try them out?

1006


What is java web application?

890