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


Please Help Members By Posting Answers For Below Questions

What is crud operations in java?

466


Which is best framework in java?

491


Why is struts used in java?

479


What is reflection in java?

484


What does el mean in java?

513






Is java an api?

461


What are microservices in java?

455


What is profile in java?

418


Differences between intermediate operations and terminal operations of java 8’s stream api?

478


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

460


Why doesn't lsdou work under windows nt? : java security

495


Do I need to install jre if I have jdk?

472


Is php faster than java?

480


What is the difference between a while statement and a do statement?

486


Can a method be static and synchronized?

517