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

Why is class forname used in java?

585


Define network programming?

606


How do I open my java console?

566


Which is best framework in java?

570


What is flatmap in rxjs?

552






What is data persistence in java?

700


What is java api?

523


What is tuple2?

576


What is the difference between lambda expression and anonymous methods?

532


What is transactional in java?

610


What happens when you omit a brace or misspell one of the words, like public or

546


Explain working of java virtual machine (jvm)?

575


What is the java api?

562


What are tags in java?

556


What does @override mean in java?

556