What is the result?

Given

What is the result?
A. c=
b = false
f = 0.0
B. c= null
b = true
f=0.0
C. c=0
b = false
f = 0.0f
D. c= null
b = false
f = 0.0F

Download Printable PDF. VALID exam to help you PASS.

5 thoughts on “What is the result?

  1. Answer A:

    Default char value is ‘\u000’ actually, but when it is called with the println() method, it get presented as an empty character (i.e. just an empty space).

Leave a Reply

Your email address will not be published.