why java has the size of character 2 byte ,while in c/c++ it
is of 1 byte?
Answer Posted / chandan singh
It is because C and C++ has limited set of characters. But java has all the character which are used in the whole world. like chineese language itself has 126 character. Every character has unique code and it is defined by Unicode system. Similarly java supports many many other characters but C and C++ don't.
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
What is persistence xml in java?
What is the use of lambda functions?
Topic- looping,function overloading,nesting ,polymorphism. Aim - to write a function with a name buzz-buds,that will check whether the given numbers are buddies or not on the basis of no. of parameters passed during function calling.
What is a singleton in java?
What is a service layer in java?
What is ui framework in java?
I get an exception if I remove the static modifier from main?
What is an entity in java?
What is the difference between a jdk and a jvm?
What is meant by swing in java?
What are java’s rules regarding tabs, spaces and newline characters?
What is resultsetmetadata in java?
Why there are no global variables in java?
What is class path in java?
What is the use of servlet in java?