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

Is it correct to say that using parentheses can only change?

661


Can you compile java into exe?

749


Write a program for the following topic - switch case,looping using fuction calling,nesting,console input output. Aim- to print a menu:- 1-series 2-single value. Each menu having sub menu armstrong or perfect.

1702


Why dependency injection is used in java?

729


What is java flatmap?

639


What is static class in java?

690


How do I run a java project?

661


What is a java proxy?

678


What is repository pattern in java?

668


What type of parameter passing does java support?

656


Does jvm maintain a cache by itself? Does the jvm allocate objects in heap? Is this the os heap or the heap maintained by the jvm? Why

644


What is lambda expressions action func and predicate?

613


What is difference between loosely coupled and tightly coupled in java?

606


Can java program run without jdk?

687


when i send the request to the JSP page it will print as it is and why? and how to solve this problem please inform me that solution

1632