why java has the size of character 2 byte ,while in c/c++ it
is of 1 byte?

Answer Posted / ritu joon

When java developer develop java language then they desiged it like that primitive data type character take 2 byte when it converted into Unicode..and c++ developer doesn't designed like that....

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by numeric promotion?

512


Is jdk required for netbeans?

492


What is mime in java?

495


program A and B are analysed and found to have worst case running time greater than 150NlogN and N*N respectively. which program has the better guarantee after the running time for the large values of N(N>10000)? which program has the better guarantee for the running time of small program N (N<100)? which program will run faster on average for N=1000?

1594


How do I find jre version?

468






What is rxjava2?

471


What is the difference between map and flatmap in java?

479


What is stateless class in java?

500


What is java web application?

462


What is meant by annotations in java?

478


What is interceptors in java?

479


What is java net url?

445


What is the difference between lambda expression and anonymous methods?

464


How does java handle integer overflows and underflows?

504


Which class is the superclass of every class?

512