Oracle
1Z0-808 · Question #14
1Z0-808 Question #14: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-808 to reveal the answer and full explanation for question #14. The question stem and answer options stay visible for context.
Working With Java Data Types
Question
Given the code fragment:
3. public static void main(String[] args) {
4. int iVar = 100;
5. float fVar = 100.100f;
6. double dVar = 123;
7. iVar = fVar;
8. fVar = iVar;
9. dVar = fVar;
10. fVar = dVar;
11. iVar = iVar;
12. iVar = dVar;
13. }
Which three lines fail to compile?
Options
- ALine 7
- BLine 8
- CLine 9
- DLine 10
- ELine 11
- FLine 12
Unlock 1Z0-808 to see the answer
You've previewed enough free 1Z0-808 questions. Unlock 1Z0-808 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.
Topics
#Type Conversions#Narrowing Conversions#Primitive Types#Implicit vs Explicit Casting