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 are the benefits of a jar file?
What is cloning in java?
there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.
What is the difference between java se and java ee?
What is lambda expressions action func and predicate?
What is the use of flatmap in java 8?
What is tight coupling in java?
Is lambda functional programming?
In java thread programming, which method is a must implementation for all threads?
How do I open the java console in windows 10?
What is meant by code profiling?
What is meant by pass by reference and pass by value in java?
What is war file in java?
What is injection in java?
Who is at risk in java? : java security