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

Answer Posted / somebdy

because java support UNICODE charactres which have large
range .. than ASCII ..
thats y it needs 16 bits .

Is This Answer Correct ?    24 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dao in java?

668


Can you compile java into exe?

737


Explain the encapsulation principle.

691


What is java web application?

634


how can we create the ui using netbeans,having the code?

1792


Topic- looping,function overloading,nesting ,polymorphism. Aim - to write a function with a name buzz-buds,that will check whether the given numbers are buddies or not on the basis of no. of parameters passed during function calling.

1812


What is reflection in java?

645


What do you understand by downcasting?

693


What is lambda value?

658


What is singleton pattern in java?

624


Describe life cycle of thread?

733


what about jdb and javadoc by example ?

1886


there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.

3617


What is gui in java with examples?

675


What is connection pooling in java?

732