How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?



How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming..

Answer / Tejvir Singh

Unicode characters can be represented using 16 to 21 bits. ASCII uses 7 bits for representing characters (extended ASCII uses 8 bits). UTF-16 uses 16 bits or 32 bits to represent a Unicode character, while UTF-8 uses variable-length sequences of 1 to 4 bytes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Explain serialization and deserialization in java?

1 Answers  


What is casting?

3 Answers   BMC,


what is abstract method with example?

6 Answers   Infosys, Virtusa,


What is a substitution variable?

1 Answers  


How do I type unicode?

1 Answers  


What are E and PI?

1 Answers  


What is charat java?

1 Answers  


Without creating a new object, How you can retrieve a String or other object?

1 Answers  


If we don’t want some of the fields not to serialize how to do that?

1 Answers  


What is isa relationship?

1 Answers  


Can we add two byte variables and assign the result to a byte variable ? b=b1+b2 where b,b1,b2 are byte types

4 Answers   TCS,


Explain Basics of OOP Language in java

1 Answers   Atos Origin,


Categories