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
Options
- Aline x1
- Bline x2
- Cline x3
- Dline x4
How the community answered
(38 responses)- A3% (1)
- B87% (33)
- C8% (3)
- D3% (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.
