Multiple choice technology programming languages

If not assigned a value, a variable of type char has the following default value:

  1. '\uffff'

  2. '\u0001'

  3. '\u0000'

  4. " " (space)

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

In Java, uninitialized char variables have default value '\u0000' (the null character). This is different from '\uffff' which is the max char value, or space character. The default ensures consistent behavior for object fields.