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 javabeans api?
What is native api in java?
What is serializable in java?
What is ibatis in java?
What is @qualifier in java?
What is class forname java?
What is java aop?
What if I write static public void instead of public static void?
What are the Advantages of java se 8 new features?
In java thread programming, which method is a must implementation for all threads?
Is jdk a compiler?
What is interceptor in java?
What's a code group? : java security
Is jvm a compiler or an interpreter?
Describe the principles of oops.