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

How do I open java console?

560


What is the use of lambda functions?

583


Is java an api?

545


Is lambda cheaper than ec2?

581


What is dto in java?

584






How do I download and install eclipse on windows 10?

517


How do you count in java?

583


What is proxy object in java?

647


What is meant by rest api in java?

552


What are microservices in java?

533


What is the difference between jar and executable jar?

583


What is Map,List,hashtable,ArrayList and difference between them??

2354


In a barber shop there are 2 doors. customer come in 1 door, leave in other. minimum # of chairs. barber spend his life in cutting. always barber can cut 1 customer. few chairs in the shop. if barber busy customer waits, if chairs full, customer leave. if no customer, barber sleeps. treat barber and customer as 2 threads. you can use Semaphore class with arrive and depart and count as parameter.

1771


Can the main method be overloaded?

634


Is jdk a compiler?

528