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 @qualifier in java?
How do I export a java project?
What is numberformatexception in java?
What are tags in java?
What happens if javac is not recognized?
What is the difference between a while statement and a do statement?
Can the main method be overloaded?
Why there are no global variables in java?
Explain daemon thread.
What about products that claim to block java applets at a firewall? : java security
What is cache in java?
What is class forname java?
Why serialization is used in java?
What are the authentication modes in asp.net? : java security
Why java is better than node.js?