nerdexam
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

1Z0-803 question #99 exhibit

Options

  • AOption A
  • BOption B
  • COption C
  • DOption D

How the community answered

(19 responses)
  • A
    84% (16)
  • B
    11% (2)
  • D
    5% (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.

Full 1Z0-803 Practice