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
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
correct answer is A
Test A.
A
A, ’cause default value of char is ” , boolean is false and float is 0.0.
LA A.
Rpta: A