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 profile in java?
What services can invoke lambda?
What is the difference between collection and stream?
What is a stream in programming?
What are the advantages of java sockets?
Define network programming?
What is a yaml file in java?
How do I run a project in netbeans?
Explain the reason for each keyword of public static void main(string args[])?
What happens if javac is not recognized?
Which framework is best for rest api java?
How do you count in java?
What is javax annotation generated?
Are the actual permissions for the application defined at run-time or compile-time? : java security
Can a method be static and synchronized?