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

Why do we create dto in java?

671


What is jdk for netbeans ide?

666


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

640


What are struts java?

660


What is stateless and stateful in java?

673


What is csrf in java?

672


What are the advantages of lambda functions?

697


What java systems libraries and methods are available for me to use?

622


Where is singleton design pattern used in java?

640


Are streams faster than for loops?

649


What is contextpath in java?

650


Is php faster than java?

652


what is reflection api? How are they implemented?

728


What is a driver in java?

705


In hibernate what is the difference between the Session and SessionFactory?

712