Multiple choice java

What is the size of a Char?

  1. 4 bits

  2. 7 bits

  3. 8 bits

  4. 16 bits

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In modern programming environments like .NET and Java, the 'char' type uses UTF-16 encoding to support international characters. This requires 16 bits (2 bytes) per character, unlike the older ASCII standard which used 8 bits.