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 maven in java?
What is interceptor in java?
Is jar an executable?
What is java api?
What is native api in java?
How do I enable java in firefox?
How to reverse the singly linked list(In Node data members are(int data,int pointerTONext))
What's the difference between local, global and universal groups? : java security
What kind of thread is the garbage collector thread?
What if the main method is declared as private?
What is jep in java?
What is jndi datasource 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.
Why do we need new date and time api in java se 8?
What is jsr in java?