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
Is it correct to say that using parentheses can only change?
Can you compile java into exe?
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.
Why dependency injection is used in java?
What is java flatmap?
What is static class in java?
How do I run a java project?
What is a java proxy?
What is repository pattern in java?
What type of parameter passing does java support?
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
What is lambda expressions action func and predicate?
What is difference between loosely coupled and tightly coupled in java?
Can java program run without jdk?
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