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
How do I open java console?
What is the use of lambda functions?
Is java an api?
Is lambda cheaper than ec2?
What is dto in java?
How do I download and install eclipse on windows 10?
How do you count in java?
What is proxy object in java?
What is meant by rest api in java?
What are microservices in java?
What is the difference between jar and executable jar?
What is Map,List,hashtable,ArrayList and difference between them??
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.
Can the main method be overloaded?
Is jdk a compiler?