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
What is a driver in java?
What about javascript? : java security
How do I know if I have jre or jdk?
What are the risks in java security? : java security
can a program use more than one command-line argument?
What is javacpl?
What do you understand by casting in java language? What are the types of casting?
What is singleton pattern in java?
Can an application have multiple classes having main method?
Why is javac not recognized?
What is @override annotation in java?
explain isalive() method under thread class?
What is cdi bean in java?
Do I really have to type in the programs in the book to try them out?
What is java web application?