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 are struts java?

486


How do I install jdk?

459


How do you create a jar file?

482


What is java web application?

471


Is lambda functional programming?

477






What is type inference? Is type inference available in older versions like java 7 and before 7 or it is available only in java se 8?

509


How does java handle integer overflows and underflows?

513


What is the difference between deep copy and shallow copy in java

551


What is meant by pass by reference and pass by value in java?

518


What is messaging queue in java?

503


What are jpa annotations?

480


What's a code group? : java security

530


When a thread is created and started, what is its initial state?

549


What is the use of flatmap?

517


What is gwt in java?

501