nerdexam
Oracle

1Z0-803 · Question #61

Given: Which line causes a compilation error?

The correct answer is B. line x2. The variable x2 is used before it has been declared.

Java Basics

Question

Given:

Which line causes a compilation error?

Exhibit

1Z0-803 question #61 exhibit

Options

  • Aline x1
  • Bline x2
  • Cline x3
  • Dline x4

How the community answered

(38 responses)
  • A
    3% (1)
  • B
    87% (33)
  • C
    8% (3)
  • D
    3% (1)

Explanation

The variable x2 is used before it has been declared.

Topics

#compilation error#syntax error

Community Discussion

No community discussion yet for this question.

Full 1Z0-803 Practice