Given:
What is the resulting output?
Instance fields receive Java default values when they are not explicitly initialized: a char field has the null character value ('\u0000'), which prints with no visible character; a boolean field is false; and a float field is 0.0f, displayed as 0.0.
char
'\u0000'
boolean
false
float
0.0f
0.0
Community Discussion