Oracle
1Z0-850 · Question #4
1Z0-850 Question #4: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-850 to reveal the answer and full explanation for question #4. The question stem and answer options stay visible for context.
Question
Given:
3. int calc() {
4. long x = 40L;
5. int i = 30;
6. x = w;
7. System.out.println("result is: " + i);
8. }
What is the result of calling calc()?
Options
- ACompilation fails because of an error at line 6.
- BCompilation fails because of an error at line 4.
- CResult is: 40
- DResult is: 30
Unlock 1Z0-850 to see the answer
You've previewed enough free 1Z0-850 questions. Unlock 1Z0-850 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.