Multiple choice java

Which one of the following primitive types is intended for use with Unicode?

  1. Double precision floating-point (double)

  2. Character (char)

  3. Byte integer (byte)

  4. Boolean (boolean)

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

The char primitive type in Java is designed to store Unicode characters using 16-bit UTF-16 encoding. This allows Java to support international characters. Double is for floating-point numbers, byte for small integers, and boolean for true/false values.