Oracle
1Z0-851 · Question #104
1Z0-851 Question #104: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #104. The question stem and answer options stay visible for context.
Question
Given: Float pi = new Float(3.14f); if (pi > 3) { System.out.print("pi is bigger than 3. "); } else { System.out.print("pi is not bigger than 3. "); } finally { System.out.println("Have a nice day."); } What is the result?
Options
- ACompilation fails.
- Bpi is bigger than 3.
- CAn exception occurs at runtime.
- Dpi is bigger than 3. Have a nice day.
- Epi is not bigger than 3. Have a nice day.
Unlock 1Z0-851 to see the answer
You've previewed enough free 1Z0-851 questions. Unlock 1Z0-851 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.