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 @qualifier in java?

564


How do I export a java project?

550


What is numberformatexception in java?

542


What are tags in java?

556


What happens if javac is not recognized?

528






What is the difference between a while statement and a do statement?

570


Can the main method be overloaded?

634


Why there are no global variables in java?

593


Explain daemon thread.

635


What about products that claim to block java applets at a firewall? : java security

588


What is cache in java?

576


What is class forname java?

563


Why serialization is used in java?

615


What are the authentication modes in asp.net? : java security

573


Why java is better than node.js?

548