Is a char always 1 byte?



Is a char always 1 byte?..

Answer / Pankaj Sahu

Yes, in Java, a char data type is always 16 bits (2 bytes), even though it can store only Unicode characters.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Name and explain the types of ways which are used to pass arguments in any function in java.

1 Answers  


How do you sort arrays in java?

1 Answers  


Convert a binary search tree to a sorted doubly linked list inplace.

1 Answers   Amazon,


How is a structure different from array ?

1 Answers   Amdocs,


How can you write a loop indefinitely in java programming?

1 Answers  


Is it possible to specify multiple jndi names when deploying an ejb?

1 Answers  


How can you set an applet’s height and width as a percentage?

1 Answers  


What does file separator do in java?

1 Answers  


How is garbage collection controlled?

1 Answers  


Definition for connection pooling?

3 Answers  


Difference between method overloading and overriding.

1 Answers  


What all access modifiers are allowed for top class ?

1 Answers  


Categories