Oracle
1Z0-803 · Question #99
Given the code fragment: Which code fragment prints blue, cyan, ?
The correct answer is A. Option A. Exception in thread "main" java.lang.Error: Unresolved compilation problem: Type mismatch: cannot convert from double to float
Using Operators and Decision Constructs
Question
Given the code fragment:
Which code fragment prints blue, cyan, ?
Exhibit
Options
- AOption A
- BOption B
- COption C
- DOption D
How the community answered
(19 responses)- A84% (16)
- B11% (2)
- D5% (1)
Explanation
Exception in thread "main" java.lang.Error: Unresolved compilation problem: Type mismatch: cannot convert from double to float
Topics
#control flow#conditional statements#output prediction
Community Discussion
No community discussion yet for this question.
