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 javabeans api?

482


What is native api in java?

483


What is serializable in java?

468


What is ibatis in java?

510


What is @qualifier in java?

478






What is class forname java?

474


What is java aop?

466


What if I write static public void instead of public static void?

466


What are the Advantages of java se 8 new features?

530


In java thread programming, which method is a must implementation for all threads?

503


Is jdk a compiler?

450


What is interceptor in java?

461


What's a code group? : java security

523


Is jvm a compiler or an interpreter?

520


Describe the principles of oops.

492