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
Describe life cycle of thread?
How should I format my code? How should I comment my code?
What is meant by framework in java?
Why oracle type 4 driver is named as oracle thin driver?
What is the difference between ec2 and lambda?
What is native class in java?
What is meant by code profiling?
What is cache in java?
What is war file in java?
What if the main method is declared as private?
Is java an api?
What does jpa mean?
What is proxy object in java?
What is the difference between swing and awt components?
What is the difference between a jdk and a jvm?